Putting Win 7 to sleep

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Putting Win 7 to sleep

Post by aurumdigitus »

Can there be a script for a CTB to put a Windows 7 desktop to the same sleep mode that is available by going through the Start Menu sequence? The is the Sleep state and not any variation of Hibernate.

Thanks in advance for your time and talent :!:

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Putting Win 7 to sleep

Post by nas8e9 »

If you have the Sysinternals suite installed (highly recommended) with its folder added to the path, you can use the psshutdown command:

Code: Select all

psshutdown -d -t 0
Edited to add: The button command would then be:

Code: Select all

run "psshutdown -d -t 0";

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Putting Win 7 to sleep

Post by aurumdigitus »

Thank you for the response. This appears to be a more complex solution than anticipated but if it does what is needed will look into it. A new adventure!

Post Reply