Batch Files For Windows

If you are running on windows using the VirtualBox setup and would like to start up and shut down using batch files ( for which you can also make icons ) here are some to try

Examples that work on my machine, with example directory locations and server names

rem this file is c:\Sage.bat it will start the Sage vm 
rem and location of open box is right
c:
cd   "C:\Program Files\Oracle\VirtualBox\"
VBoxManage startvm Sage-4.7.2

-----

rem this file is c:\SageOff.bat  it will shut down  Sage vm
rem and location of open box is right
c:
cd  "C:\Program Files\Oracle\VirtualBox\"
VBoxManage controlvm Sage-4.7.2  poweroff

The next two files have symbolic names that you need to replace with the names for your system.

rem this file is c:\Sage.bat it will start the Sage vm 
rem and location of open box is right
c:
cd  <directory where virtual box is located>
VBoxManage startvm <sage virtual machine name>

-----

rem this file is c:\SageOff.bat  it will shut down  Sage vm
rem and location of open box is right
c:
cd  <directory where virtual box is located>
VBoxManage controlvm <sage virtual machine name>  poweroff
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License