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
Putting Win 7 to sleep
Re: Putting Win 7 to sleep
If you have the Sysinternals suite installed (highly recommended) with its folder added to the path, you can use the psshutdown command:
Edited to add: The button command would then be:
Code: Select all
psshutdown -d -t 0
Code: Select all
run "psshutdown -d -t 0";
-
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Re: Putting Win 7 to sleep
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!