Using the Task Scheduler
To save even more time and trouble, you can have Windows run batch files and WSH scripts for you, on a scheduled basis. The Task Scheduler lets you enter commands to be run on an hourly, daily, weekly, or other schedule. You can use scheduling to perform disk cleanups, backups, reports, software installation, or any other task that you want to occur (a) when you're not around, or (b) even if you forget to do it by hand.
NOTEWhen a scheduled batch file or script runs, unless you're logged on at the time with the same username as you use to run the scheduled task, you won't see anything on your screen. You won't see any error messages, and you won't be present to type in any information or click on any dialog boxes. So, ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access