Hello, Usman!
I suppose it would look like this...
[System.Runtime.InteropServices.DllImport("kernel32 .dll", EntryPoint = "GetShortPathName", SetLastError = true)]
private static extern int PlaySound(string lpszLongPath , string lpszShortPath , int cchBuffer);
string strPath = Application.StartupPath;
string strShortPath = new string(' ', 100);
int n = GetShortPathName(strPath, strShortPath, 100) ;
--
Regards, Vadym Stetsyak
www:
http://vadmyst.blogspot.com