Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When my computer comes out of Standby (S3) my permantent network shares are disconnected (in My Computer under Network Drives it says "disconnected network drive").

They do reconnect when I click them in an explorer, but I have timed backup scripts (Windows .cmd files) running which wake the computer and need to access one of those drives and which fail at file access.

Is there a way to reconnect such a drive from a Windows XP cmd file?

share|improve this question

possibly adding the relevant

net use X: \\server\share

commands to the scripts will be enough to refresh the connections

or, rewrite the scripts to use the UNC paths directly (I'm never sure if I believe the theory that this results in slower access than a mapped drive...)

share|improve this answer
I was hoping for a way where it wasn't necessary for the script to know the location of the mapped drive (i.e. to be able to just move \\server\share somewhere else in the future without having to update the scripts). something like "net reopen x:" (I'm just making this up) or a clever trick to that end. – Nicholaz Feb 10 '10 at 21:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.