Map network drive...

  • Thread starter Anthony Boudouvas
  • 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
 
J

Jerry Ham

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
 

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

Top