Skip to main content

All Questions

2 votes
4 answers
66k views

Task Scheduler- Batch "Run whether user is logged on or not" not working

I've created a batch file (EnableDisable.bat) that will disable a Windows Task Scheduler job (SampleJob) on a local system, if a job with same name (SampleJob) is already enabled and running on ...
t_venuga's user avatar
1 vote
1 answer
86 views

windows-7 nightly scheduled .bat with a DOS pause in it executes but never pauses

The following is my nightly_backup.bat file, scheduled to run every night at 11pm. But though it does the backups ok, I never find it paused in the morning, like I expect it. echo off ROBOCOPY C:\...
Doug Null's user avatar
  • 818
0 votes
0 answers
86 views

Creating a BAT to lopp directories and 7zip them

I a have a bunch of folders from my projects under C:\Projects, and they are a lot. While I can throw a task scheduler to robocopy the folder to B:\Backups\Projects\, having to 7zip (or just zip) ...
DarkGhostHunter's user avatar
0 votes
1 answer
406 views

Batch file returns "divide by zero error" only when run using Task Scheduler

I had an issue with a batch file that returned "Divide by zero error" if, and only if, it was run using Task Scheduler. If run manually, it behaved as expected. I had managed to narrow down the ...
Marcel's user avatar
  • 355
-1 votes
1 answer
2k views

Cleanup Windows on startup or shutdown

My Environment Multiple VMs all comprising of Various versions of Windows which is power on/off as needed i like to cleanup my %temp% and other places on reboot so as to save space and also speed up ...
SeanClt's user avatar
  • 2,237
1 vote
1 answer
3k views

Every 5 min cron job between specific time (Windows Server 2008 and batch file)

Previous colleague set up cron job every 5 min for 24 hrs. Now I need to modify this only running between 7am to 7pm. I had never learned cron job so I googled and tried but it didn't work. Task ...
hasmai's user avatar
  • 21
23 votes
3 answers
44k views

Should a scheduled task remain in the "Running" state?

I'm new to using the task scheduler and I'm using it to run a batch file provided online when the computer boots. I r-clicked it and told it to run. It did and all is fine, but the Status of the task ...
NSouth's user avatar
  • 353
2 votes
2 answers
464 views

Status of the process while Windows scheduler working

I have a .bat file which should kick off every 30mins. I am using Windows scheduler for this. I have some questions on the same: Does the scheduled task starts at a scheduled time even after a system ...
user1570824's user avatar