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.
 

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

Back
Top