Code: Select all
net stop <service_name>I attached my program, and you need Java to use it It needs refactoring and documentation (License I guess) though.
To use it you must set JAVA_HOME environment variable, then edit the config/vboxprocrun.properties. Here is mine:
Code: Select all
startupCommand= C:\\Program Files\\Sun\\VirtualBox\\VBoxHeadless.exe -startvm Debian
shutdownCommand= C:\\Program Files\\Sun\\VirtualBox\\VBoxManage.exe controlvm Debian savestate
vBoxDir= C:\\Program Files\\Sun\\VirtualBox\\
dateFormat=[dd-MM-yyyy HH:mm:ss]
Code: Select all
vboxprocrun.bat install [service_name]
and to remove the service, you could type:
Code: Select all
vboxprocrun.bat remove [vmname]