Mapping a Drive

  • Thread starter Thread starter John Smith
  • Start date Start date
Nothing included in the FCL to do this, so you will have to PInvoke
NetUseAdd (netapi32.dll ) orWNetAddConnection2 or WNetAddConnection3 (
mpr.dll ).
Another option in to call the "net use add ..." shell command using
System.Diagnostics Process.Start method.
However I suggest using UNC path's instead of mapping drives to local
devices.

Willy.
 
Back
Top