auto to sleep rather than shut down

Is there a command line parameter that will put windows to sleep rather than shut down. I had hoped that

Quote
<div class="ipsQuote_contents">
	<blockquote class="ipsQuote" data-ipsquote="">
		<div class="ipsQuote_citation">
			Quote
		</div>

		<div class="ipsQuote_contents">
			<p>
				start CCleaner.exe /AUTO /psshutdown -d -t 0
			</p>
		</div>
	</blockquote>

	<p>
		 
	</p>
</div>

would work but no luck.

I don't think there's a way to do that currently. But it's a good suggestion.

Thanks for the quick reply. It would certainly be handy for me.

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

1 hour ago, APMichael said:
<div class="ipsQuote_contents ipsClearfix" data-gramm="false">
	<p>
		You could create a batch file like the following and name it "ccsleep.bat" for example:
	</p>

	<pre class="ipsCode prettyprint lang-html prettyprinted">

@ECHO OFF
START “CCleaner” /WAIT “%ProgramFiles%\CCleaner\CCleaner64.exe” /AUTO
<path_to_psshutdown>\PSSHUTDOWN.EXE” -d -t 0

	<p>
		 
	</p>

	<p>
		PsShutdown can be downloaded here: <a href="https://docs.microsoft.com/en-gb/sysinternals/downloads/psshutdown" rel="external nofollow" target="_blank">https://docs.microsoft.com/en-gb/sysinternals/downloads/psshutdown</a>
	</p>
</div>

Does that wait for ccleaner to finish before psshutdown?

16 hours ago, Nergal said:
<div class="ipsQuote_contents">
	<p>
		Does that wait for ccleaner to finish before psshutdown?
	</p>
</div>

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.

On 16/05/2020 at 16:12, APMichael said:
<div class="ipsQuote_contents">
	<p>
		You could create a batch file like the following and name it "ccsleep.bat" for example:
	</p>

	<pre class="ipsCode prettyprint lang-html prettyprinted">

@ECHO OFF
START “CCleaner” /WAIT “%ProgramFiles%\CCleaner\CCleaner64.exe” /AUTO
<path_to_psshutdown>\PSSHUTDOWN.EXE” -d -t 0

	<p>
		 
	</p>

	<p>
		PsShutdown can be downloaded here: <a href="https://docs.microsoft.com/en-gb/sysinternals/downloads/psshutdown" rel="external nofollow">https://docs.microsoft.com/en-gb/sysinternals/downloads/psshutdown</a>
	</p>
</div>

Excellent! Thanks for the help