Running two batch files after one another?

HansN

Reputable
Apr 5, 2014
3
0
4,510
I want my computer (Windows 7) to clean up with CCleaner at shutdown, and to stop running programs before CCleaner is started..

I have written a batch file calling two successive batch files like this:

@echo off
cls
call KillPrograms.bat
call CCleanerAutoShutdown.bat
exit

Both batch files work exactly as intended when run separately, but in this combined batch file only the first one is run, and then the combined batch file quits.

How can I amend that?
 

HansN

Reputable
Apr 5, 2014
3
0
4,510
Thank you for your reply - but unfortunately your suggestion does not help.
I have tried the commands wait, ping, sleep, and timeout (/T) - none of them helps; the batch file still stops after the first call command is completed.