Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with UNC Paths
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00677635
Message ID:
00677675
Vues:
23
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform