FYI
I have used a combination of API's WNetGetUniversalName and NetShareEnum.
WNetGetUniversalName gives you the mapped drives, NetShareEnum gives you the
local shared drives. By checking both of these you can establish the UNC
name of a folder or file.
Tim
"Tim Marsden" <(E-Mail Removed)> wrote in message
news:ue$(E-Mail Removed)...
> Hi,
>
> Given a file Path, for example "C:\Data\Samples".
> How do I convert this to "\\Server\Share\Data\Samples"
> The original "C:" , "F:" etc may be local or a mapped network drive.
> I am trying to ensure the path (stored as sting in database) is valid
from
> any machine, regardless of the drive mappings and shares on the machine.
>
> any suggestions,
> Tim
>
>
>
>
|