DECLARE INTEGER GetShortPathName in win32api; > STRING @lpsource, STRING @lptarget, INTEGER nLength >lcbuffer = SPACE(260) >* lcfilename is the long filename >lnresult = GetShortPathName(@lcfile, @lcbuffer, LEN(lcbuffer)) >IF lnresult > 0 > ? LEFT(lcbuffer, lnresult) >ENDIF >* With the WSH >oFSO = CREATEOBJECT('Scripting.FileSystemObject') >oFile = oFSO.GetFile(lcfile) >IF NOT ISNULL(oFile) > ? oFile.ShortName >ENDIF