Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- SETLOCAL
- :start
- cls
- set VBOX_HOME=C:\PROGRA~1\Oracle\VirtualBox
- %VBOX_HOME%\VBoxManage.exe showvminfo %VM_NAME% > \Temp\vboxfullstatus.txt
- set /p texte=< \Temp\vboxfullstatus.txt
- echo %texte% > \Temp\vboxstatus.txt
- findstr /b /c:"Guest OS:" \Temp\vboxfullstatus.txt >> \Temp\vboxstatus.txt
- findstr /b "Memory" \Temp\vboxfullstatus.txt >> \Temp\vboxstatus.txt
- findstr /b "State:" \Temp\vboxfullstatus.txt >> \Temp\vboxstatus.txt
- echo. >> \Temp\vboxstatus.txt
- type \Temp\vboxstatus.txt
- choice /m "Press R or wait 5 seconds to check again, E to exit:" /c re /t 5 /d r
- if ERRORLEVEL 2 goto:eof
- if ERRORLEVEL 1 goto start
Add Comment
Please, Sign In to add comment