Last active
December 16, 2015 02:28
-
-
Save deeperton/5362303 to your computer and use it in GitHub Desktop.
The script suspends all running virtual machines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@FOR /F "tokens=*" %%G IN ('VBoxManage list runningvms') DO @CALL :suspend %%G | |
:suspend | |
@SETLOCAL | |
@SET _name=%1 | |
@SET _uuid=%2 | |
@IF [%1]==[] GOTO:eof | |
@echo Suspend: %_name% | |
VBoxManage controlvm %_uuid% savestate | |
@ENDLOCAL | |
@EXIT 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Windows Bathfile.
The script suspends all running virtual machines.
Path to the VBoxManage.exe must by added to the system PATH variable.
for x64