How to access mapped drive in DOS?

  • Thread starter Thread starter brett
  • Start date Start date
B

brett

I have a NAS device on my local network. There is an L drive mapped to
this device. It will go to sleep after a few minutes. I can't access
it through DOS when this happens. The only way I've found to access it
(wake it up) is to click the L drive in Windows Explorer.

I posted previously on this:
http://groups.google.com/group/micr...neral/browse_thread/thread/6e79d96189c8b1b3/#.
I thought something such as

copy /y c:\myfile.txt l:\myfile.txt

was working. However, I guess the NAS was never asleep when I tested
this the first couple of times. Now I see when the NAS is asleep the
above fails with this error:

The system cannot find the drive specified.

I need the NAS to wake up because my backup program is failing for the
same reason. Ping doesn't wake it up either. Any ideas?

Thanks,
Brett
 
Seems the question is about "waking up" the machine to run the job. If you
had the batch file running in the "task scheduler", you'll click the
"settings" tab, and then click on "wake up the PC' to run this task on the
very bottom. That should wake the machine up.

I sometimes have to introduce a time delay in the begining of the batch file
to have some programs run properly after wakeup. You'll have to determine
this by "trial and error" if your task needs it.
 
The laptop, where the batch is running from, is already awake. Are you
saying the task scheduler has the ability to wake up a remote machine
(NAS in this case)?

Thanks,
Brett
 
Back
Top