CLOSE

You've Found Us! Now Stay Connected...

Sign Up for PCMech.com's FREE weekly newsletter. We'll help keep you informed on what's happening in the world of technology.


Privacy Policy | More Information

PCMech.com helps normal people get their geek on. We talk about computers, technology, the Internet, social media - anything that makes a geek feel warm and fuzzy inside.

Home | About | Newsletter | Forums | Advertise! | Store | Wordpress Help | Log in

Helping Normal People Get Their Geek On

Scheduling When Services Run

About this Post

Posted Aug 20, 2007
Daily Tips

About the Author

Jason Faulkner is the man who brings you our daily tips. He is based in Atlanta, Georgia.

A handy trick you can do with Windows services is starting and stopping them based on a schedule you set. This way you can run background processes during a time where you will not be using the computer in order to maximize resources available to you.

For example, suppose I only wanted to run Folding @ Home during non-business hours (5 PM - 8 AM), here is how I would do it:

  1. Open your Services configuration: Start > Run > services.msc 
  2. Set the service’s startup type to Manual.
  3. Create a new text file called “Folding-Start.bat” with the line: net start folding-service-name
  4. Create another text file called “Folding-Stop.bat” with the line: net stop folding-service-name
  5. Create a Windows Scheduled Task to run “Folding-Start.bat” at 5 PM every weekday.
  6. Create another Scheduled Task to run “Folding-Stop.bat” at 8 AM every weekday.

This will ensure the service is not running during working hours, so the resources will not be used. Of course this same process and be applied to any other Windows Service you have on your system.

Subscribe To the PCMech Feed for more interesting posts and exclusive feed-only freebies. Our weekly newsletter will keep you up to date each week.

Post a Comment

Now Playing on PCMech Video

Feature ImageHow-To: Make a Super-Fast Pie Chart

Feature ImageMicrosoft Worldwide Telescope

See All Videos | PCMech Channel Youtube Channel

Free Weekly Newsletter

Sign up! Exclusive weekly content, weekly rant, and more!

Name:
Email: | Privacy Policy
  | See Also Online Business Club

Subscribe to PCMech Feed

Subscriber Feed More Info

Or, via email. Exclusive, Feed-Only Content.

Sponsor


Recent Visitors