How to convert local path to UNC-path? 
Author Message
 How to convert local path to UNC-path?

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



Mon, 05 Jul 2004 15:21:39 GMT  
 How to convert local path to UNC-path?
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.


Quote:
> 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



Mon, 05 Jul 2004 23:36:55 GMT  
 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



Tue, 06 Jul 2004 17:19:20 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to convert local path to UNC-path?

2. Local path vs UNC Path

3. turning a local path into a UNC path

4. convert unc to a local path

5. API to convert local path to UNC?

6. convert unc to a local path

7. Converting logical paths to UNC paths

8. Help converting UNC paths to physical paths.

9. Converting logical paths to UNC paths

10. How to convert path to UNC path?

11. UNC Path and the local System Account

12. how to use UNC to local path (MAPI)

 

 
Powered by phpBB® Forum Software