Mapping network drive

  • Thread starter Thread starter Slawek
  • Start date Start date
S

Slawek

Hello,

In my application (WinForm) I need to read data from files located on other
computers. I know passwords and user names requied to map these natwork
drives but I don't know how to map it programmaticaly from my application.
Do you have any ideas? Thanks for any help.

Regards
Slawek
 
Slawek,

You will have to use the WNetAddConnection function (or the number 2, or
3 versions of it) in order to map a network drive. You will have to call
this function through the P/Invoke layer.

Hope this helps.
 
Back
Top