Andy, Try this:
[DllImport( "kernel32.dll", CharSet=CharSet.Auto )] private extern static int GetShortPathName(string lpszLongPath, StringBuilder lpszShortPath, int cchBuffer); private string GetShortPathName( string in_LongPath ) { StringBuilder a_ReturnVal = new StringBuilder( 256 ); int a_Length = GetShortPathName( in_LongPath, a_ReturnVal, a_ReturnVal.Capacity ); return a_ReturnVal.ToString(); } Mattias === Mattias Sjögren [EMAIL PROTECTED] You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.