Scheduling Tasks in Windows 7

  Jul 31, 2011     13286 Views      Tools & Utilities , Windows 7       Comments (3)   

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 off
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.

Scheduling Tasks in Windows 7

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.

Comments

1. Jim Priest on Jul 31, 2011 at 10:42 AM

It's better but still not as reliable as cron. :) I still occasionally get inconsistent results. 99% of the time the tasks run but there is that 1% when things don't fire which always troubles me.

2. Akbarsait on Aug 3, 2011 at 10:24 AM

Completely Agree and Cron is the best for scheduling things but Windows 7 Schedule task is 100% better when comparing to Windows XP.

3. Mano on Jan 21, 2012 at 10:09 AM

I prefer VisualCron, http://www.visualcron.com, for scheduling. You can do many things that cannot be done in the built in scheduler. Like calling web services and methods in assemblies.

About Me

CFML/Web/Cloud/Data/Agile Enthusiast, Husband & Dad, an avid learner & android fan who works as a Tech Consultant in Toronto, Canada.

GetCFMLJobs.com!
Get Your Next CFML Job!
ColdFusion Tuts
ColdFusion Tutorials & Resources


Categories

Adobe Agile AppCore Creator BlogCFC Books Bootstrap CFBuilder CFEclipse CFML Chennai CFUG Chrome Extensions ColdFusion Google IIS India Learning MySQL Railo Subversion Tools & Utilities Web Windows 7


Archives

2021 2018 2017 2016 2014 2013 2012 2011 2010 2009 2008

Search


Akbarsait © 2008 - 2023 | Hosting provided by Vivio Technologies

Home | Blog | Sitemap | RSS Feed