Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortpath
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00738312
Message ID:
00738345
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Guys..
>
>I want to know how to get the shortpath from a directory
>samples :
>
>fullpath folder = "temp/task activity"
>
>but i can i get the shortpath like in msdos (temp/taskac~1) mode..
>
>thanks...
>
>regards
>tut_arie

Another solution is to use the Windows Script Host's Scripting.FileSystem object
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
* lcfile is the file of interest
oFile = oFSO.GetFile(lcfile)
? oFile.ShortPath
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform