egnm1969 Posted August 17, 2008 Share Posted August 17, 2008 Hi all, I see that we now have the option to Shutdown the machine once CCleaner is running in the background, but I was wondering would it be possible to add to CCleaner's context menu (in addition to the already existing Shutdown), the option to "Hibernate After Clean", as some people don't necessarily want to completely shutdown their machines, and prefer to just Hibernate once they've finished... Here's hoping Thanks Ed Link to comment Share on other sites More sharing options...
YoKenny Posted August 17, 2008 Share Posted August 17, 2008 Hi all, I see that we now have the option to Shutdown the machine once CCleaner is running in the background, but I was wondering would it be possible to add to CCleaner's context menu (in addition to the already existing Shutdown), the option to "Hibernate After Clean", as some people don't necessarily want to completely shutdown their machines, and prefer to just Hibernate once they've finished... Here's hoping Thanks Ed There is no hibernate.exe like there is for shutdown.exe in C:\WINDOWS\system32 Folder so I doubt it would be possible. "Education is what remains after one has forgotten everything he learned in school." - Albert Einstein IE7Pro user Link to comment Share on other sites More sharing options...
mushu13 Posted August 17, 2008 Share Posted August 17, 2008 It should be an easy feature to add. XP + Vista (maybe earlier aswell): rundll32.exe powrprof.dll,SetSuspendState Hibernate Vista Only: shutdown /h They call them fingers, but I've never seen them fing, or ger. WOAH there they go!!!!!!! ~Otto How to use CCleaner on a Flash Drive (pre v2.0) Link to comment Share on other sites More sharing options...
egnm1969 Posted August 17, 2008 Author Share Posted August 17, 2008 @mushu13 - Exactly what I was thinking could be added, as I use this command line in Newsleecher to tell it to hibernate when it's finished downloading: rundll32 powrprof.dll,SetSuspendState @Yokenny - Close, but no banana Here's hoping it might be added one day... Link to comment Share on other sites More sharing options...
Disk4mat Posted August 17, 2008 Share Posted August 17, 2008 This can be achieved using WSH. DIM WshSet Wsh = WScript.CreateObject("WScript.Shell")Wsh.Run "C:\Program Files\CCleaner\CCleaner.exe /AUTO", 1, True 'The True flag causes WSH to wait for CC to exitWsh.Run "RunDll32.exe powrprof.dll,SetSuspendState", 1, False 'We use False flag so WSH isnt running while in hibernateSet Wsh = nothingWScript.Quit Open Notepad. Copy & paste. Adjust the path for CCleaner.exe on line 4 as needed. File menu, Save As (not save) for the file name type: CCSleep.vbs In the file type box, click the drop down and select "All files" Edit: This assumes you enabled the option in CC to close after cleaning Link to comment Share on other sites More sharing options...
mushu13 Posted August 18, 2008 Share Posted August 18, 2008 Edit: This assumes you enabled the option in CC to close after cleaning CC always closes automatically with the /AUTO switch. They call them fingers, but I've never seen them fing, or ger. WOAH there they go!!!!!!! ~Otto How to use CCleaner on a Flash Drive (pre v2.0) Link to comment Share on other sites More sharing options...
Disk4mat Posted August 18, 2008 Share Posted August 18, 2008 Thanks for the correction. I picked that up from another thread. Link to comment Share on other sites More sharing options...
egnm1969 Posted August 21, 2008 Author Share Posted August 21, 2008 Haven't I seen you somewhere before on this forum Disk4mat ? Yet again Disk4mat you've outdone yourself I just tried the script you left and it worked fine apart from one correction. Seems the vbs script under XP only accepts ye olde 8.3 filenaming as I had to rename line 4 to: Wsh.Run "C:\Progra~1\CCleaner\CCleaner.exe /AUTO", 1, True 'The True flag causes WSH to wait for CC to exit ... as it balked at the Joliet method. Strange but true... it's probably my laptop Well this quickfix will do for the mo, and hopefully someone at Piriform might one day incorporate this request into CCleaner to make it even better than it is already now Thanks Disk4mat & everyone else who helped out for this fix... Much appreciated Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now