Network Drive mapping ( Programmatically )

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

How can I map a network drive Programmatically using c# ? ( without using the scripting host

Nadav.
 
Nadav,

You are going to have to call the networking APIs through the P/Invoke
layer. Specifically, you want to take a look at the WNetAddConnection,
WNetAddConnection2, and WNetAddConnection3 functions.

Hope this helps.
 

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