Page 1 of 1

Command showvminfo in bat file

Posted: 13. Apr 2013, 05:16
by VirtualChecker
Hello

I'm trying to create a command
A similar principle will show here
ping 173.194.47.50 > c:\ping.txt


I would like all the information from the command VBoxManage showvminfo ABC save to file ABC.txt

Is there any way to make it work well in the bat file ?

Re: Command showvminfo in bat file

Posted: 17. Apr 2013, 17:22
by scottgus1
I wrote this in a command line:

Code: Select all

vboxmanage showvminfo CNCgroupXP > "C:\Users\admin\Desktop\New Text Document.txt"
and the output of the "vboxmanage showvminfo" command ended up in the text file.
I have put the path to the Vboxmanage.exe in my path environment variable so I can just type in "vboxmanage etc.." and it works.
If you don't wish to do that, your command line / batch file has to be running in the folder Vboxmanage.exe is in, or give the path to Vboxmanage.exe in the batch file, as in "C:\Program Files\Oracle\VirtualBox\Vboxmanage etc..."