dos command to connect to a mapped drive

Is there a dos command to reconnect to a mapped drive?
AiyshaAsked:
Who is Participating?
 
sirbountyCommented:
to 'reconnect'?

You could use
net use r: /del
net use r: \\server\share

to disconnect and reconnect the r drive to an existing resource...
0
 
r-kCommented:
Type "net use /?" at a command prompt.

or see http://www.cezeo.com/tips-and-tricks/net-use-command/ for examples.
0
 
gigcoCommented:
Yes - net use <drive letter>: "<path to drive>" /persistent:yes

So if you wanted an M: drive to go to Server1 and access folder Apps and have it reconnect on logon here is what you'd use:

net use M: "\\Server1\Apps" /persistent:yes

That's it - you'd have an M: drive to the apps folder on server1 that'd reconnect on logon.

Good luck!
0
 
AiyshaAuthor Commented:
Sirbounty to the rescue as always !! Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.