Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find UNC path to a file?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01232750
Message ID:
01232759
Views:
23
>When I use GetFile() function it retuns file name with the path in mapped format (e.g. "F:\myfolder\myfile.txt".
>
>Is it possible to make GetFile() return the file location in UNC format? Or, to convert the mapped file location to the UNC format?
>
>Thank you in advance for your help.

One of the solutions could be like this:
oFSO = CREATEOBJECT("Scripting.FileSystemObject")

lo= oFSO.GetFile(getfile())
?lo.Drive.ShareName
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform