Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get short Path like Old DOS...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00767845
Message ID:
00767853
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform