I have to share our computer with my brother. I would like to setup the CCleaner to run each time the browser is started. Not auto run only when the computer is started. Are there command line parameters that I can use to do this? Any ideas I welcome. Katrin
You would have to use WSH to run CC with the switch, then launch the browser. Here is the code to get you started. You only need change the URL to your prefered site.
Option ExplicitDIM Wsh, IESet Wsh = WScript.CreateObject("WScript.Shell")'Run CC with the auto switch. Wait for it to finish then open the browserWsh.Run "C:\Programs\CCleaner\CCleaner.exe /Auto", 1, True' Create the IE objectSet IE = WScript.CreateObject("InternetExplorer.Application", "Browser_")IE.Visible = TrueIE.Navigate "http://www.microsoft.com"WScript.DisconnectObject IESet IE = NothingSet Wsh = nothingWScript.Quit
Also I zipped up the script file.