Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Matching drive letters and URL's
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00873335
Message ID:
00873338
Views:
22
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform