Works absolutely fabulous, on my machine. Will it work on every Windows machine?
>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?
Groet,
Peter de Valença
Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.