Question about scheduled tasks and batch files

  • Thread starter Thread starter ajf
  • Start date Start date

ajf

ajf

Soldato
Joined
30 Oct 2006
Posts
3,068
Location
Worcestershire, UK
Scenario.
Server 2003. I want to run a scheduled task that runs when not logged in that copies a directory from the server to a share on a NAS box.
Is this possible?

I have used basic xcopy batch file to run it whilst logged in as I can just map a drive to the NAS box share first.
How do I set the batch file to point to a network drive when not logged in though - is it possible?
Currently the batch files just fails.
 
Thank you
I will give this a try.
Thought it should be an easy one but scripts I have never go the hang of. lol

Andrew
 
I thought I had this cracked. Using the UNC worked but...

I have seem to have a strange (?) problem.
If the server is logged off the task runs fine and continues to run when I then log in.
However is SEEMS as if when I log off the task is stopped.
It certainly stops at some point after I have been on the server as the copying halts half way through and it only seems to happen in the above scenario.

If I run the task logged in or never log in whilst it runs it seems to complete without issue.

Is this possible - or just coincidence?
I log in using the same credentials as those given to run the scheduled task - could this be the issue?

I can try the vbs but just want to know why this doesn't work!

Andrew
 
Back
Top Bottom