shell - How to execute a .bat file from vboxmanage? -


i trying execute host machine (win 7 64 bit) simple .bat file in virtual machine (win xp 32 bit) under virtualbox following command:

c:\progra~1\oracle\virtualbox\vboxmanage.exe guestcontrol vxp32bit execute --image c:\home\start.bat --username admin1 

and start.bat file:

echo hello world > hello.txt 

the order sent vm empty terminal opened nothing happens , cannot write on terminal.

i tried convert .bat in .exe problem still same.

what doing wrong? appreciated. in advance.

i found solution, maybe not best better been blocked. bat file run outside vm, location need specified:

echo hello world > c:\home\hello.txt 

or better solution if need perform complex stuff in vm:

cd c:\home echo hello world > hello.txt 

Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -