HowTo: Get UNC path based on a drive letter 
Author Message
 HowTo: Get UNC path based on a drive letter

Does anyone have any experience converting a driver letter to a UNC
path using C# or VB.NET?

Basically, I want to take "C:\abc\xyz\123.txt" and convert it to
\\MyServerName\abc\xyz\123.txt".  I have looked at the
system.management namespace but I am having a hard time figuring this
out.

Any ideas or thoughts would be greatly appreciated?

- Derek



Wed, 09 Feb 2005 04:30:28 GMT  
 HowTo: Get UNC path based on a drive letter
Hi Derek,

You will find an example at the following link:

http://www.dotnet247.com/247reference/msgs/16/82735.aspx

Please note that we have not tested the sample. Try it  and see if it meets
your needs.

Hope this helps!
Bharat Patel
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.              



Wed, 09 Feb 2005 06:21:28 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting UNC path using drive letter

2. VB5: Getting a drive letter from UNC paths

3. get mapped drive letter from UNC path

4. Pulling Drive Letter from UNC Path

5. Getting the drive letter from a UNC name

6. UNC and Drive Based Files\Paths

7. Getting mapped path from drive letter

8. Converting UNC to drive letter

9. UNC to drive letter

10. Convert a network drive letter to the relative UNC name

11. UNC to drive letter

12. UNC to drive letter (NETRESOURCE)

 

 
Powered by phpBB® Forum Software