Jump to content

Recommended Posts

Muppet007
Posted

Hi all,


I'm trying to get DServer.exe to automatically load a my server.sds file using a batch script.

Running Windows Server 2022, using Task Scheduler to restart other dedicated servers once per day.
The scheduled task force kills the running server process and starts it again mainly to avoid memory leaks or performance degradation over time.


Here’s a working example of how I launch other game servers using a batch.

@echo off echo Stopping DServer...
taskkill /F /IM DServer.exe 2>nul

echo Starting DServer...
start "" "C:\Program Files\IL-2 Sturmovik Great Battles\bin\game\DServer.exe"

 

This launches the DServer GUI fine, but it doesn't automatically load the .sds file.
I haven’t been able to find any documented command line switch or config setting that forces DServer to load and start the server.sds automatically.

Any insight or workaround other than Rcon would be appreciated.


Thanks in advance!



 

-DED-Zlodey
Posted
Push-Location "F:\Il2\bin\game"
& .\DServer.exe "F:\Il2\data\Multiplayer\zlodey.sds"
Pop-Location

☝️powershell

 

You can create a shortcut. In the "Object" field, add the path to your SDS file. And run it through a shortcut

 

image.png.250897fc3454e31827392662de801927.png

 

@echo off
start "" "C:\Users\Zlodey\Desktop\Start_dserver.lnk"

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...