32
14
On a daily basis I find myself in the Windows command prompt needing to access a network drive that is mapped but disconnected. I have yet to find a command that will reconnect this drive without unmapping and remapping (which leads to a password guessing game, since I don't own these computers). I would also like to be able to script this so every night the drive is reconnected if it has become disconnected somehow.
The fastest solution I currently have is to:
- Type "
start." to open explorer, - Alt-D to focus the address bar,
- type the drive letter I want and press enter, and wait for it to display the drive contents,
- then finally, close explorer and go back to the command prompt.
I know it's a minor inconvenience, but I'm often doing this through a slow VNC or PCAnywhere connection where doing anything through GUI is awful, so I'm just wondering if there's a better solution.
1What happens when you
dir h:\\? – wfaulk – 2009-10-08T06:08:44.5703In stead of typing "start.<enter>" you can just do win-E and save 5 keystrokes ;-) – fretje – 2009-10-08T13:21:25.210
1I "solved" it by just using the \server\share path instead of the mapped drive. You can just copy files if you need to. (That was my problem) – Peterdk – 2013-05-03T11:41:10.843