Scheduling Tasks in Windows 7
Posted : Jul 31, 2011 9:30 PM by Akbarsait
Tags:
Tools & Utilities
,
Windows 7
Windows 7 makes many things simpler and one of them which I would really like is the Task Scheduler feature. Task Scheduler in Windows 7 helps you to perform automation of tasks which can be run on regular intervals or can be schedule to run Daily, Weekly or on the Monthly basis.
Using Task Scheduler in Windows 7 we can start a program, Send an Email or display a message. One thing I used to perform in my dev system regularly is manually restarting ColdFusion server on a daily basis with this batch script.
echo Stopping ColdFusion 9 Services
echo ======================================================
net stop "ColdFusion 9 Application Server"
echo Starting ColdFusion 9 Services
echo ======================================================
net start "ColdFusion 9 Application Server"
echo ======================================================
echo ColdFusion 9 Services are Started
Let see how we can utilize the Task Scheduler in Windows 7 to automate this process.
- To Launch the Task Scheduler go to Control Panel > Administrative Tools > Task Scheduler or just type "Task" on the Windows menu search.
- Create a Basic Task and follow the steps which ask for when and what time you want to trigger a job (Email, Program etc.) the remaining steps are self-explanatory.
- To execute the above batch file I just mentioned the file location of it in "Start a Program" wizard which triggers my ColdFusion Server restart.

That's it we have done scheduling it and 'm sure many of us are using this feature already but if you're not then don't wait it's really saves our time in doing these types of repetitive works.

