Skip to content

Instantly share code, notes, and snippets.

@royopa
Forked from terrancesnyder/run.vbs
Created June 6, 2016 13:16
Show Gist options
  • Save royopa/18c4fa6804a06016e85781ff47cd623a to your computer and use it in GitHub Desktop.
Save royopa/18c4fa6804a06016e85781ff47cd623a 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