Looking for best practice for doing a “Net Use” in C#

Question :

Looking for best practice for doing a “Net Use” in C#,

Answer :

I’d rather not have to resort to calling the command line.
I’m looking for code that can map/disconnect a drive, while also having exception handling.

Any ideas?

,

Use P/Invoke and
There should also be some out there to do some of the grunt work for you.
Google is your friend, as always.

That’s the answer Looking for best practice for doing a “Net Use” in C#, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Read More  What rule engine should I use?

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you