Skip to content

Instantly share code, notes, and snippets.

@yusufhm
Created December 2, 2014 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusufhm/df0dd192c7951d781a39 to your computer and use it in GitHub Desktop.
Save yusufhm/df0dd192c7951d781a39 to your computer and use it in GitHub Desktop.
Windows VirtualBox AutoStart (Headless?)
"C:\Program Files\Oracle\VirtualBox\VBoxHeadless" -startvm "ubuntu-webserver-11.04-64" -p 3340
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
"C:\Program Files\Oracle\VirtualBox\VBoxManage" controlvm "ubuntu-webserver-11.04-64" poweroff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment