Created
November 15, 2019 05:44
-
-
Save flyingdan/2f732d733b3938fbeeee7207b7e0f739 to your computer and use it in GitHub Desktop.
A quick script to start DCS server and other related programs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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