>>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement