DECLARE INTEGER GetShortPathName IN Win32API; STRING @lpszLongPath, STRING @lpszShortPath,; INTEGER cchBuffer * lclongpath is the long filename lcshortpath = SPACE(260) lnbuffer = LEN(lcshortpath) lnbuffer = GetShortPathName(@lclongpath, @lcshortpath, lnbuffer) IF lnbuffer > 0 lcshortpath = LEFT(lcshortpath, lnbuffer) ENDIF