Access network directory from job scheduled to run when not logged

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am scheduling a DOS batch file using Windows XP Scheduler to run while I'm
not logged in. The batch file copies files from my local C drive to a network
drive, allocated drive letter P when I'm logged in. However, when the batch
file runs (via the scheduler, while I'm not logged in) it does not recognize
the network drive.

Does anyone know a solution?

Thanks for your help,
Graham
 
The problem may be due to not having a persistent mapped drive to P:. If the
drive was mapped via the GUI, most likely the option "Reconnect at Logon" was
selected so that you always see P: in Explorer. When you log off the drive
is disconnected and thus unavailable when your .bat script runs.

Try mapping the drive via the command line with the /persistent:yes option,
or adding the net use commands in the .bat file

Alternatively, you could set up offline files and allow the files to be
synchronized each time you logon, logoff, or both. You can also schedule
offline files synchronization - this feature can even establish a network
connection for you, if one is present at the scheduled time.
 
Back
Top