Guest User

Untitled

a guest
May 27th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. @ECHO OFF
  2.  
  3. SETLOCAL
  4.  
  5. :start
  6. cls
  7.  
  8. set VBOX_HOME=C:\PROGRA~1\Oracle\VirtualBox
  9.  
  10. %VBOX_HOME%\VBoxManage.exe showvminfo %VM_NAME% > \Temp\vboxfullstatus.txt
  11.  
  12. set /p texte=< \Temp\vboxfullstatus.txt
  13. echo %texte% > \Temp\vboxstatus.txt
  14.  
  15. findstr /b /c:"Guest OS:" \Temp\vboxfullstatus.txt >> \Temp\vboxstatus.txt
  16. findstr /b "Memory" \Temp\vboxfullstatus.txt >> \Temp\vboxstatus.txt
  17. findstr /b "State:" \Temp\vboxfullstatus.txt >> \Temp\vboxstatus.txt
  18. echo. >> \Temp\vboxstatus.txt
  19.  
  20. type \Temp\vboxstatus.txt
  21.  
  22. choice /m "Press R or wait 5 seconds to check again, E to exit:" /c re /t 5 /d r
  23. if ERRORLEVEL 2 goto:eof
  24. if ERRORLEVEL 1 goto start
Add Comment
Please, Sign In to add comment