Mapping network drives using C#

  • Thread starter Thread starter John Dean
  • Start date Start date
J

John Dean

Are there any built-in .NET classes that can be used to map drives and
printers? I know I can run the shell command "NET USE" but if there are any
built-in classes it would be more elegant. Thanks!
 
Nope, nothing built in. You can use the NET API via P/Invoke, or you can do
that with the NET command.
 

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