how to map samba server drive to some local drive in C# using net use ?
And how to display them in Windows explorer like window ?
Any code snippet is highly appreciated.
Thanks in Advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would recommend creating a batch file which contains the command you want to execute and then call this batch file from your C# application. This ensures if you need to change the net use command it is well encapsulated.
myBatchFile.cmd
Application code
You will need to add this using to your application.
See here for more information on Process.Start:
Can you expand on “And how to display them in Windows explorer like window ?”