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

The WNetGetConnection would be one way, and probably the easiest.

++++++++++++++++++++
Monte Hansen
http://www.*-*-*.com/
++++++++++++++++++++


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 22:58:17 GMT  
 How to convert local path to UNC-path?
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



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



Tue, 06 Jul 2004 17:21:26 GMT  
 How to convert local path to UNC-path?
I tried to do this about a year ago, and came to the conclusion that it
can't be done. Good luck.


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



Wed, 07 Jul 2004 00:25:22 GMT  
 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



Fri, 09 Jul 2004 18:41:50 GMT  
 How to convert local path to UNC-path?
Check out ScUNCFromLocalPath API which is part of MAPI.

- Jalil

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



Sun, 11 Jul 2004 12:07:02 GMT  
 
 [ 5 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