The idea is, when I use VBoxManage guestcontrol to execute a program on the guest, I would like the host to be able to read the exit code of that guest program.
Let's say the guest has fail.bat
Code: Select all
exit /b 1Code: Select all
"C:\Program Files\Oracle\VirtualBox\VBoxManage" guestcontrol Win7_x64 exec --image "C:\Users\Developer\Desktop\fail.bat" --username Developer --password developer --wait-stdout --wait-stderr