Deriving UNC Path from local drive

  • Thread starter Thread starter Jerry Spence1
  • Start date Start date
J

Jerry Spence1

I want to be able to convert:

C:\Program Files\MyApplication

into

\\MyServer\TheShareNameForCDrive\Program Files\MyApplication

Does anyone know how to do this?

- Jerry
 
Jerry Spence1 said:
I want to be able to convert:

C:\Program Files\MyApplication

into

\\MyServer\TheShareNameForCDrive\Program Files\MyApplication

Does anyone know how to do this?

Notice that there is not necessarily a one-to-one mapping between local
paths and UNC paths, because there can be multiple shares. You can use
p/invoke on 'WNetEnumResource' to get a list of shares on the server.

<URL:http://groups.google.de/groups?threadm=u7G9U0KzCHA.1768@TK2MSFTNGP12>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top