Skip to content

Instantly share code, notes, and snippets.

@terrancesnyder
Created June 4, 2011 15:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save terrancesnyder/1008005 to your computer and use it in GitHub Desktop.
Save terrancesnyder/1008005 to your computer and use it in GitHub Desktop.
VBScript + Batch to run windows in background
================ run.vbs ================
REM 0 = hide window, 1 = show window (useful for debugging)
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run """" & "run.bat" & """" & sargs, 0, False
Set WshShell = Nothing
================ run.bat ================
REM Batch script to start VirtualBox instance of ReviewBoard in headless mode
start /b "" "C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" -startvm "Ubuntu x64 Server" -e "TCP/Ports=8000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment