Program that runs other programs, then shuts down?
Program that runs other programs, then shuts down?
Hi,
was trying to do this with some batch files but i don't know enough to write them correctly i guess.
was just looking for a program that would run several other programs(their command line versions i guess are all thats possible?) stuff like CCleaner, BleachBit, and then maybe a defrag program - one after the other in sequence, and then when they are done shut down the computer.
was trying to do this with some batch files but i don't know enough to write them correctly i guess.
was just looking for a program that would run several other programs(their command line versions i guess are all thats possible?) stuff like CCleaner, BleachBit, and then maybe a defrag program - one after the other in sequence, and then when they are done shut down the computer.
Re: Program that runs other programs, then shuts down?
Search for Shutdown.
Re: Program that runs other programs, then shuts down?
It is indeed possible with a batch file, provided that each program closes when it's done.
Something like:
Something like:
Code: Select all
C:\path\to\program.exe /AUTO
E:\path\to\another\program.exe
REM this shuts down the computer
C:\Windows\System32\shutdown.exe /s /t 0
My YouTube channel | Release date of my 13th playlist: August 24, 2020
Re: Program that runs other programs, then shuts down?
thanks, it takes a while to wade thru them. always get sidetracked on this site.guinness wrote:Search for Shutdown.
SYSTEM wrote:It is indeed possible with a batch file, provided that each program closes when it's done.
Something like:
Code: Select all
C:\path\to\program.exe /AUTO E:\path\to\another\program.exe REM this shuts down the computer C:\Windows\System32\shutdown.exe /s /t 0
oki, i had this:
and it would pause after the first one for some reason. i don't know any of thisECHO OFF
CALL BleachBit_console.bat
CALL ccleaner.bat
stuff, just tried to pick up a few clues from that stackoverflow site i think it was but
they didn't address this specifically, where one program starts and finishes and then the next one starts and finishes.
i'll try your code there next
Re: Program that runs other programs, then shuts down?
CALL is supposed to return control to the parent script when the child script has been run, so your example should have worked. Are you sure that BleachBit_console.bat doesn't have a "pause" command at the end?bzl333 wrote: oki, i had this:
and it would pause after the first one for some reason. i don't know any of thisECHO OFF
CALL BleachBit_console.bat
CALL ccleaner.bat
stuff, just tried to pick up a few clues from that stackoverflow site i think it was but
they didn't address this specifically, where one program starts and finishes and then the next one starts and finishes.
i'll try your code there next
My YouTube channel | Release date of my 13th playlist: August 24, 2020
Re: Program that runs other programs, then shuts down?
wow, there was a pause command thereSYSTEM wrote: CALL is supposed to return control to the parent script when the child script has been run, so your example should have worked. Are you sure that BleachBit_console.bat doesn't have a "pause" command at the end?
seems to work fine now.
thanks
Re: Program that runs other programs, then shuts down?
I wonder when batch scripting will become obsolete?
Re: Program that runs other programs, then shuts down?
When BASh gets a native port for Windows... ?guinness wrote:I wonder when batch scripting will become obsolete?
Re: Program that runs other programs, then shuts down?
Never?guinness wrote:I wonder when batch scripting will become obsolete?
Batch has the advantage that it works out of the box. You don't need to download a third-party interpreter in order to run batch files.
My YouTube channel | Release date of my 13th playlist: August 24, 2020
Re: Program that runs other programs, then shuts down?
Just read the wiki page for batch, didn't know KiXtart was developed by a Microsoft employee.
Re: Program that runs other programs, then shuts down?
Like this?
http://win-bash.sourceforge.net/
http://win-bash.sourceforge.net/
Midas wrote:When BASh gets a native port for Windows... ?guinness wrote:I wonder when batch scripting will become obsolete?