topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday December 11, 2024, 11:03 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Run several programs then shutdown  (Read 3034 times)

plk

  • Participant
  • Joined in 2013
  • *
  • Posts: 6
    • View Profile
    • Donate to Member
Run several programs then shutdown
« on: January 27, 2013, 05:03 PM »
I'm not sure, maybe there already is a program already out there that does this easily, but i would like to
run several programs in a row like CCleaner, BleachBit, ATF Cleaner, and then maybe a defrag utility, maybe a few others and then when they are done, have the computer shutdown.  Also some of these utilities are on a separate partition from the Windows C: drive if that makes any difference.  i guess a batch file could do the job but i googled around and it was still too complicated for my dimbulb mind, lol.

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
Re: Run several programs then shutdown
« Reply #1 on: January 27, 2013, 06:40 PM »
Over here I wrote a program that checks for the existance of specified running tasks, effectively pausing a batch file until they're all finished.

So you could write a batch file something like:
Code: Text [Select]
  1. <path to>\ccleaner.exe
  2. <path to>\bleachbit.exe
  3. <path to>\defrag.exe c:
  4. WTPF.exe ccleaner.exe bleachbit.exe defrag.exe
  5. shutdown -s

Or you could set up the tasks in Task Scheduler to be performed at shutdown.