Hi Peter,
I think Scripting may be another solution.
oFso = CreateObject("Scripting.FileSystemObject")
oDrive=oFso.Drives
?oDrive.Count
oDr=oDrive.Item("p:")
?oDr.ShareName
>Hi Tore,
>
>Via the FoxWiki I found this great text, and it includes a function that is THE solution!
>
>
http://www.civilsolutions.com.au/publications/getuncpath.htm>
>BTW, URL and UNC are different things, IMO. It was really a matter of writing URL while I mean and know it should be UNC.
>
>>Hi Peter,
>>
>>In this case URL and UNC have the same meaning, doesn't it? By the way, I hope you found a solution.
>>
>>>>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?
>>>
>>>Where I wrote URL, I mean UNC.
Regards,
Mike
"We try to solve the problem by rushing through the design process so that enough time is left at the end to uncover the errors that were made because we rushed through the design process."
- Glenford Myers
If you're going through hell, keep going. - Walt Disney