Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get short Path like Old DOS...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00767845
Message ID:
00767853
Vues:
8
This message has been marked as a message which has helped to the initial question of the thread.
>I work with Visual FoxPro and AutoCAD.
AutoCAD do not like the long paht and file name like:

>c:\Répertoire long\MonFichieravecé.dwg
>How can I conver the path and file name in the sort path and file name with ~ in the path?


Try with this:
LOCAL lcFile,loFso,loFile
lcFile = "c:\Répertoire long\MonFichieravecé.dwg"
loFso = CREATEOBJECT("Scripting.FileSystemObject")
loFile= loFso.GetFile(lcFile)
?loFile.ShortPath()
HTH.
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform