Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNC Names
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00297612
Message ID:
00297770
Views:
25
>>Does anyone know how to take something like c:\mydir\junk.txt and turn it into \\computerName\computerDrive\mydir\junk.txt
>>
>There's a Win32 API that converts a mapped drive letter into the corresponding UNC - the FAQ contains a small code example showing how it works.
>
>If the drive is not mapped, but is a local resource, it's a considerably more difficult problem, since there's no assurance (1) that the drive is accesible by anyone on another machine, or if it is shared, (2) what share to use as a base reference if more than one UNC can resolve the path.

Thanks for the info Ed the FAQ was somewhat helpfull. I think I need to go the extra step and resolve the UNC for the local resource.

Basically I shouldn't have to worry about someone trying to access the local files from another spot.

I did'nt quite understand the point about "what share to use as a base reference if more than one UNC can resolve the path."

What is the next step?

thanks again for your help!

scott
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform