Map network drive...

  • Thread starter Thread starter Anthony Boudouvas
  • Start date Start date
A

Anthony Boudouvas

Hi to all,

is there programmatically to map a network drive, beeing able to give
credentials for that drive ?
I mean, not make a process object and call "net start..." etc.
but some sort of classes or api calls ??

thanks a lot for any help

anthonyb
 
WNetAddConnection2 (API call). Look it up in MSDN for the parameters.
There is no class provided by MS to do it in .Net. I am sure others have
written classes to encapsulate the WNetAddConnection2 API - it is pretty
straightforward to do.

Jerry
 
Back
Top