In NT based systems, the drives are shared as follows:
\\ComputerName\C$
\\ComputerName\D$
These are admin shares and have special permissions assigned to them, you
may be able to use those.
You can determine the computer name with System.Net.Dns.GetHostName
Then, extract the drive from the file-path.
UNCPath = "\\" & ComputerName & "\" & Drive & "$\Folder\File"
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
"Chaos, Panic, Disorder, my work here is done"
: Hi
:
: How do I determine the UNC path of a file in VB.NET.
: for example if I am given "D:\folder\file.txt", I want to obtain
: "\\Computer\Drive\Folder\file.txt"
:
: Tim
:
: