Scheduling Tasks in Windows 7

  Jul 31, 2011     10848 Views      Windows 7 , Tools & Utilities       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.

Tweet This Share on Google + Share on LinkedIn Pin It on Pinterest


Comments

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

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

# 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/Mobile/Salesforce/Agile Enthusiast, Husband & Dad, an avid Technology, Android fan and creator of GetCFMLJobs.com. Currently working as a Sr.Consultant & TPM in Phoenix,  Arizona.

GetCFMLJobs.com!
Get Your Next CFML Job!
CFMLThisWeekly!
Newsletter for CFML Community!
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


Latest CFML Jobs @ GetCFMLJobs.com



Archives

2018 2017 2016 2014 2013 2012 2011 2010 2009 2008

Search



Akbarsait © 2008 - 2019
Hosting provided by Vivio Technologies

Home | Blog | Sitemap | RSS Feed