DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Run several programs then shutdown  (Read 4,198 times)

plk

  • Participant
  • Joined in 2013
  • *
  • Posts: 6
Run several programs then shutdown
« on: January 27, 2013, 11: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

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Run several programs then shutdown
« Reply #1 on: January 28, 2013, 12:40 AM »
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: (generic)
<path to>\ccleaner.exe
<path to>\bleachbit.exe
<path to>\defrag.exe c:
WTPF.exe ccleaner.exe bleachbit.exe defrag.exe
shutdown -s

Or you could set up the tasks in Task Scheduler to be performed at shutdown.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

Original address: https://www.donationcoder.com/forum/index.php?topic=33830.0