Hey, I would like a script that will pause all my virtualbox guests and then puts the host to sleep.
Is this possible? Where should I start?
Posted 08 February 2012 - 17:24
@echo off
cd /d %VBOX_INSTALL_PATH%
for /f "delims={" %%f in ('vboxmanage list runningvms') do vboxmanage controlvm %%f pause
powercfg -h off
%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
powercfg -h on
for /f "delims={" %%f in ('vboxmanage list runningvms') do vboxmanage controlvm %%f resume
Posted 09 February 2012 - 11:12
cralias, on 08 February 2012 - 17:24, said:
@echo off
cd /d %VBOX_INSTALL_PATH%
for /f "delims={" %%f in ('vboxmanage list runningvms') do vboxmanage controlvm %%f pause
powercfg -h off
%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
powercfg -h on
for /f "delims={" %%f in ('vboxmanage list runningvms') do vboxmanage controlvm %%f resume
Need Help! Easily worried and stressed; I feel sickin General DiscussionStarted by thatguyandrew1992, Yesterday, 07:16 |
|
|
|
The Pinball Arcade - Needs Your Help To Get "Twilight Zone"!in Gamers' HangoutStarted by jrolson85, 20 May 2012 - 23:27 |
|
|
|
Need GFX Cardin Hardware HangoutStarted by WarriorEd22, 22 May 2012 - 16:46 |
|
|
|
Need a small 16 or 32 GB flash drivein Netbook, Tablet & Mobile DevicesStarted by Stealthy_Singh, 22 March 2012 - 20:23 |
|
|
|
Need Sound to go with that big screen :)in Home Theatre DiscussionStarted by Izlude, 20 May 2012 - 00:26 |
|
|