How do you map network drives?

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

Guest

I have a Visual Basic .Net application that needs to disconnect and connect a network drive, how can I do this?
 
I dont believe there is anything in System.DirectoryServices. But yes
you can use P/Invoke to call a Win32 API.

Another solution is to use System.Diagnostics.Process to run the net use
command. (e.g. "NET USE z: \\server\share")
 
Back
Top