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.
 
Back
Top