Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Matching drive letters and URL's
Message
 
 
À
03/02/2004 08:23:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00873335
Message ID:
00873338
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
Hi Peter,

You can use WSH to get drive mapping.
oNet = CREATEOBJECT("Wscript.Network")
oDrives = oNet.EnumNetworkDrives()
FOR i=0 to oDrives.Length-1 STEP 2
	? oDrives.Item[i], oDrives.Item[i+1]
ENDFOR
>Hi all,
>
>Here's my current problem. I have several variables that hold folder names. Some of them contain a URL, like "\\F0D0010\APPS\MYAPP\DATA", wheras others are drive letter oriented, like "F:\MYAPP\DATA" where F: might be a drive mapping to "\\F0D0010\APPS".
>
>I need a routine that tells me about an eventual match, like in:
>
cVar1 = "F:\MYAPP\DATA"
>cVar2 = "\\F0D0010\APPS\MYAPP\DATA"
>*
>? FoldersAreSame( cVar1, cVar2 )
>Who can put me on the right track?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform