
How to convert local path to UNC-path?
I'm sure it can be done. The information is in the Windows registry if not
elsewhere. But is there a simple function that returns the answer just like
that, that's another story...
Janne
Quote:
> I tried to do this about a year ago, and came to the conclusion that it
> can't be done. Good luck.
> > Thank you Monte!
> > I tried WNetGetConnection 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. WNetGetConnection 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
> > > The WNetGetConnection would be one way, and probably the easiest.
> > > ++++++++++++++++++++
> > > Monte Hansen
> > > http://KillerVB.com
> > > ++++++++++++++++++++
> > > > 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