Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find UNC path to a file?
Message
From
13/06/2007 16:36:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01232750
Message ID:
01232777
Views:
30
>>>One of the solutions could be like this:
>>>oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>>>
>>>lo= oFSO.GetFile(getfile())
>>>?lo.Drive.ShareName
>>
>>Yuri, first thank you for your help.
>>
>>Can you think why when I run your simple code (above), I get empty value of .ShareName? Could it be because I choose a file from my local drive?
>
>I do not get it: if you choose the file from the local drive, then what UNC you expect?

You can always convert c:\sub\dire\cto\ry into \\127.0.0.1\c$\sub\dire\cto\ry (if the local IP is known, it can be used instead), but that's cheating, and I don't see any purpose to it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform