Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert long file name to 8 character DOS name
Message
 
À
06/02/2003 00:13:49
Hee Lim Wang
Fantasy Software Enterprise
Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00749714
Message ID:
00750277
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform