Get Exit Code From Guest Program
Posted: 6. Mar 2014, 03:12
I apologize if this should be obvious. I've been googling, but nothing so far.
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
Then from the host, I run
From the host, how can I get the exit code of fail.bat, which ran on the guest?
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