DIGIT-ARC read-only archive · snapshot: July 23, 2026

Auto start an application after closing another application

10 posts · originally from https://geek.digit.in/community/threads/auto-start-an-application-after-closing-another-application.144940/

bobby23
bobby23 Original post #1
Aug 10, 2011 at 12:27 PM
Is there a way for me to auto start ccleaner and automatically Run Cleaner after I close Google chrome every time?
saswat23
Aug 10, 2011 at 12:37 PM
If you are using Windows7 then shedule this in the Sheduler.
Zangetsu
Aug 10, 2011 at 12:49 PM
Is there a way for me to auto start ccleaner and automatically Run Cleaner after I close Google chrome every time?

I don't think there is a software which will do the same...
but one can create a win32 program using VB.NET or C# & applying the concept of threading
Skud
Skud #4
Aug 10, 2011 at 12:52 PM
Is there a way for me to auto start ccleaner and automatically Run Cleaner after I close Google chrome every time?


If all you need to do is clear Google Chrome's cache, then I think every browser supports "clear cache on exit" sort of thing. Try looking in the settings.
coderunknown
Aug 10, 2011 at 1:07 PM
*i52.tinypic.com/an2byg.jpg
bobby23
bobby23 #6
Aug 10, 2011 at 6:14 PM
I have click & clean it does clear the cache but I am using win 7 and I have it pinned to the taskbar. So when I right click on chrome in taskbar it shows recently closed and most visited. I have to use ccleaner to clean it. Not only chrome but every thing pinned to the taskbar shows history, which I don't want.
@Zangetsu how do I do that??
Thx all
Zangetsu
Aug 10, 2011 at 6:25 PM
@Zangetsu how do I do that??
Thx all
if u know vb.net & c# then only u can create a program in visual studio IDE.
u need to have thorough knowledge of the subject "Threading","Process" etc.

what the program will do is run in background & monitor chrome is running or not
& as soon as it is closed it will open CCleaner.but u have to design it that way.:razz:
but it will only open CCleaner & will not automate its inside process such as "RegCleaning" etc
Vyom
Vyom #8
Aug 10, 2011 at 10:29 PM
Is there a way for me to auto start ccleaner and automatically Run Cleaner after I close Google chrome every time?

I can't help you on how can you accomplish the Automatically running of CCleaner after some app, like Chrome closes, but I can help you in making that easier.

As, Zangetsu said, even if you could make such an app, "it will only open CCleaner & will not automate its inside process such as "RegCleaning" etc"
So, for that I would like to add, that CCleaner supports Command Line Parameters.
So, if you edit a shortcut of CCleaner by following command, just double clicking it, would automatically start the software, and would perform the cleaning.
Code:
CCleaner.exe /AUTO

Source:
CCleaner - Command-line parameters

CCleaner runs silently and automatically, using the current set of saved options to clean the PC. CCleaner then exits.
cute.bandar
Aug 11, 2011 at 3:00 PM
pretty sure this can be done with autohotkey. Try asking there: AutoHotkey Community - Mouse and Keyboard Macros and Hotkeys
nisargshah95
Aug 14, 2011 at 1:33 PM
pretty sure this can be done with autohotkey. Try asking there: AutoHotkey Community - Mouse and Keyboard Macros and Hotkeys

Exactly what I was thinking! I could have made an executable for you but I do not know your config. So here's the code you need for AutoHotKey -
Code:
RunWait chrome.exe
Run CCleaner.exe /AUTO   '[If Vineet369's command is right]

Type chrome.exe and CCleaner.exe along with their respective path names and then assign a hotkey for this script or just make an executable out of it (Autohotkey supports converting your scripts to exes. There's a separate program included for that). Next time you want to open Chrome, just open that exe itself.