Click here to Skip to main content
15,921,530 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi, I trying to map server but no success,
first line ok but second is bad.

What I have tried:

<pre>Process.Start("CMD", "/q net use * /delete /Y")
        Process.Start("CMD", "/q net use  \\server_name\d$ * /PERSISTENT /Y")
Updated 19-Oct-22 1:19am
Richard Deeming 19-Oct-22 7:32am    
You've given us precisely zero information to work with. There is no way for anyone to help you besides guessing.

For example, the server might not be available; it might not have a D: drive; your account might not have permission to access the admin shares on the server; or there could be something else wrong.

Without any details of the error, we can't tell you what the problem is.
0x01AA 19-Oct-22 9:37am    
Keep in mind: '\\server_name\d$' means admin share. To do that you need admin rights.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900