>Hi ! is there any one can tell me how to convert long file name to 8 character dos name
>eg.
>MyFolder=SYS(5)+SYS(2003)
>?MyFolder
>C:\PROGRAM FILES\MICROSOFT VISUAL FOXPRO 7
>convert MyFolder to DOS name
>C:\PROGRA~1\MICROS~3
In addition to what the others have mentioned there's the Windows Script Host's FileSystemObject
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
oFile = ofso.GetFile(GETFILE("*"))
? oFile.ShortPath
George
Ubi caritas et amor, deus ibi est