Page 1 of 1

How to start a program on a guest XP

Posted: 27. Sep 2014, 03:51
by Docfxit
I'm trying to launch a program from the host (Win7 Pro) on the Guest (XP Pro).

I created a bat file to run it:

Code: Select all

C:\Programs\VirtualBox\VBoxManage.exe guestcontrol "XPVirtualMachine" execute --image "\\VBOXSVR\Dnload\StartAllSesions.exe" --username Name --password RealPassword --wait-stdout --verbose
cmd
The bat files runs with no errors. The program doesn't stay running on the guest.

Code: Select all

Opening guest session as user 'jimxp' ...
Waiting for guest session to start ...
Guest session (ID 1) has been started
Starting guest process ...
Process '\\VBOXSVR\Dnload\StartAllSesions.exe' (PID 592) started
Process terminated
Exit code=0 (Status=500 [successfully terminated])
Closing guest session ...
What do I need to change to have the process stay running?

Thank you,

Docfxit

Re: How to start a program on a guest XP

Posted: 27. Sep 2014, 12:41
by mpack
That isn't a VirtualBox question. VBox may provide the tools to launch an application. The decision to terminate an application is taken by the application itself - or the guest OS.

If the application doesn't keep running then I'd guess that it's unhappy with the task you asked it to do. Don't ask me what that is.

Re: How to start a program on a guest XP

Posted: 27. Sep 2014, 18:49
by Docfxit
This same program runs fine if I start it within the guest OS (XP). The problem has to be the way it's being called with VBoxManage.exe guestcontrol.
Do I have the parameters correct?

Thanks,

Docfxit

Re: How to start a program on a guest XP

Posted: 27. Sep 2014, 23:38
by mpack
I have no way to know if the parameters are correct. I assume name and realpassword are placeholders for the real thing, and while I see a misspelling of "sesion" a.k.a. session, I don't know if it's intended.