Quantcast
Channel: Windows 7 Miscellaneous forum
Viewing all articles
Browse latest Browse all 11372

Win7 Scheduled Tasks Headache

$
0
0

OK, So I'm setting up a very basic backup system for some computers on my network. Before any moderators get unhappy with where I posted this, I assure you this is not a networking or a compatibility issue. Moving on. 

Ex. Window 7 PC, user account and admin account.

Test the following cmd line on the admin account. 

xcopy "C:\users\*localuser*" "\\server\*their folder*" /s /y /d >> "\\server\*their folder*\backupsucceed.txt"

Runs fine. Files show up and completes in around ten minutes.

Delete backup.

Save the command line i just tested as a .bat file, run file, same result, files copy, complete in around 10 minutes.

Delete Backup.

Set up a scheduled task to run once, Make sure to set highest priority and run whether the user is logged in or not. When I set up the task the program I have it start is cmd, and in arguments I put /c start "" "C:\*file location*\backup.bat"

Log out. Wait for task to run. Files show up, complete in about 10 minutes. 

So everything is great so far.

Go back to set up the task again, same procedure, but this time I set it on a schedule for M-F at 6:00 PM. Log out. Leave the PC. I come in the next day (today) and the files haven't updated. The log file (backupsucceed.txt) wasn't appended. Nothing. It didn't run. Queue my confusion. This is happened with all 3 Windows 7 PC's I've set up so far.

Any ideas?


Viewing all articles
Browse latest Browse all 11372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>