Thanks in advance for your time and talent
Putting Win 7 to sleep
-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Putting Win 7 to sleep
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
Thanks in advance for your time and talent
-
nas8e9
- Posts: 2232
- Joined: 21 Jun 2008 14:50
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 0Code: 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
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!
XYplorer Beta Club