Skip to content

Instantly share code, notes, and snippets.

@flyingdan
Created November 15, 2019 05:44
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 flyingdan/2f732d733b3938fbeeee7207b7e0f739 to your computer and use it in GitHub Desktop.
Save flyingdan/2f732d733b3938fbeeee7207b7e0f739 to your computer and use it in GitHub Desktop.
A quick script to start DCS server and other related programs
# DCS Start-up Script
# Add applications to start to this list
# IMPORTANT: "#_" prefix required to set application run order
# Executable = path to the executable file
# StartDir = "Start in" path from desktop/start menu link. Normally the folder where the executable is located
$applications = @{
"1_SRS" = @{"Executable"="C:\Program Files\DCS-SimpleRadio-Standalone\SR-Server.exe";"StartDir"="C:\Program Files\DCS-SimpleRadio-Standalone"};
"2_DCS_updater" = @{"Executable"="C:\DCS World OpenBeta Server\bin\DCS_updater.exe";"StartDir"="C:\DCS World OpenBeta Server"}
}
foreach($app in $applications.Keys){
Write-Host "Starting $app"
Start-Process -FilePath $applications[$app]["Executable"] -WorkingDirectory $applications[$app]["StartDir"]
}
Write-Host "Opening WebUI"
# Open Server Web GUI
$webui_path = Resolve-Path "C:\DCS World OpenBeta Server\WebGui\index.html"
Start-Process -FilePath "C:\Program Files\Mozilla Firefox\firefox.exe" -ArgumentList `"$($webui_path.path)`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment