Neiltoo Posted May 14, 2020 Share Posted May 14, 2020 Is there a command line parameter that will put windows to sleep rather than shut down. I had hoped that Quote Quote start CCleaner.exe /AUTO /psshutdown -d -t 0 would work but no luck. Link to comment Share on other sites More sharing options...
Moderators Nergal Posted May 14, 2020 Moderators Share Posted May 14, 2020 I don't think there's a way to do that currently. But it's a good suggestion. ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF. Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark) ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T. Support at https://support.ccleaner.com/s/?language=en_US Pro users file a PRIORITY SUPPORT via email support@ccleaner.com Link to comment Share on other sites More sharing options...
Neiltoo Posted May 16, 2020 Author Share Posted May 16, 2020 Thanks for the quick reply. It would certainly be handy for me. Link to comment Share on other sites More sharing options...
APMichael Posted May 16, 2020 Share Posted May 16, 2020 You could create a batch file like the following and name it "ccsleep.bat" for example: @ECHO OFF START "CCleaner" /WAIT "%ProgramFiles%\CCleaner\CCleaner64.exe" /AUTO "<path_to_psshutdown>\PSSHUTDOWN.EXE" -d -t 0 PsShutdown can be downloaded here: https://docs.microsoft.com/en-gb/sysinternals/downloads/psshutdown Link to comment Share on other sites More sharing options...
Moderators Nergal Posted May 16, 2020 Moderators Share Posted May 16, 2020 1 hour ago, APMichael said: You could create a batch file like the following and name it "ccsleep.bat" for example: @ECHO OFF START "CCleaner" /WAIT "%ProgramFiles%\CCleaner\CCleaner64.exe" /AUTO "<path_to_psshutdown>\PSSHUTDOWN.EXE" -d -t 0 PsShutdown can be downloaded here: https://docs.microsoft.com/en-gb/sysinternals/downloads/psshutdown Does that wait for ccleaner to finish before psshutdown? ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF. Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark) ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T. Support at https://support.ccleaner.com/s/?language=en_US Pro users file a PRIORITY SUPPORT via email support@ccleaner.com Link to comment Share on other sites More sharing options...
APMichael Posted May 17, 2020 Share Posted May 17, 2020 16 hours ago, Nergal said: Does that wait for ccleaner to finish before psshutdown? Yes, "/WAIT" instructs "START" to do this. Syntax: START "title" [/D path] [options] "command" [parameters] Options: /W or /WAIT - Start application and wait for it to terminate. Link to comment Share on other sites More sharing options...
Neiltoo Posted May 19, 2020 Author Share Posted May 19, 2020 On 16/05/2020 at 16:12, APMichael said: You could create a batch file like the following and name it "ccsleep.bat" for example: @ECHO OFF START "CCleaner" /WAIT "%ProgramFiles%\CCleaner\CCleaner64.exe" /AUTO "<path_to_psshutdown>\PSSHUTDOWN.EXE" -d -t 0 PsShutdown can be downloaded here: https://docs.microsoft.com/en-gb/sysinternals/downloads/psshutdown Excellent! Thanks for the help 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