Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with UNC Paths
Message
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00677635
Message ID:
00677675
Views:
26
You can get mapping using WSH. The rest should be simple.
oFso = CreateObject("Scripting.FileSystemObject")
FOR EACH oDrive IN oFso.Drives
	? oDrive.Path
	? oDrive.ShareName
ENDFOR
>This is tough to explain, here goes:
>I have a server ( MyServer ) that has a drive and folder ( g:\MyFolder ) that is shared on the network as ServerFolder. My local machine has a mapping to ServerFolder ( i:\ ). Here's what I can do so far: I can, on my local machine, derive from "i:\SomeFolder\SomeSubFolder" the UNC "\\MyServer\MyFolder\SomeFolder\SomeSubFolder".
>So now, on my local machine, I have 2 references to SomeSubFolder, my mapping and the UNC. Now what I want to get, on my local machine, is MyServer's mapping to this UNC. i.e. something like a DecodeUnc possibly:
>
>? "The server's mapping to \\MyServer\MyFolder\SomeFolder\SomeSubFolder is:"
>? DecodeUnc( "\\MyServer\MyFolder\SomeFolder\SomeSubFolder" )
>
>
>would display
>
>The server's mapping to \\MyServer\MyFolder\SomeFolder\SomeSubFolder is:
>g:\Myfolder\SomeFolder\SomeSubFolder
>
>
>Anyone got any ideas on how a DecodeUnc function would work? Thanks,
>jfh
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform