Welcome Guest.   Make a donation to an author on the site April 16, 2014, 10:51:51 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the full one-year retrospective report on DonationCoder.com.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Run several programs then shutdown  (Read 711 times)
plk
Participant
*
Posts: 6


View Profile Give some DonationCredits to this forum member
« on: January 27, 2013, 05:03:26 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.
Logged
4wd
Supporting Member
**
Posts: 3,222



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: January 27, 2013, 06:40:54 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:
Formatted for Generic Code with the GeSHI Syntax Highlighter [copy or print]
  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.
Logged

Four wheel drive: Helping you get stuck faster, harder, further from help...........and it's no different on this forum Evil
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.044s | Server load: 0.02 ]