
How to convert local path to UNC-path?
Thank you Ken!
I tried the second example and it works fine with the network devices that
are mapped on my machine. How ever, this was not the problem. I have shared
D:\Temp\testi on my machine with sharename "testi". My machine name is
JANNE_01. The example code that worked fine with network drives, returned
"D:\Temp\testi" where I wished it would have returned \\JANNE_01\testi.
I still seek in the dark.
Best regards
Janne
Quote:
> Here's a couple samples... this first one explains things a bit.. the 2nd
> one is code only but probably just as good.
> Get the UNC Path
> http://www.vb-world.net/api/tip527.html
> Convert Path to UNC Path
> http://www.vbusers.com/code/codeget.asp?ThreadID=62&PostID=1&NumRepli...
> --
> Ken Halter
> MS-MVP-VB
> Please respond only to the newsgroups so all can benefit.
> > Hi,
> > Please tell me what is the easiest way to convert local
> > path to UNC-path. Suppose my machine name is mchjanne and
> > i have shared the directoy C:\projects\project1\test on my
> > machine with sharename test1. I wish to write code that
> > finds out that C:\projects\project1\test equals to
> > \\mchjanne\test1.
> > Thanks for your help!
> > Janne Kejo