Jump to content

Recommended Posts

Posted

Hi all,

 

Having just setup a server and wanting to find an easy way to work on missions on my gaming box and have them transferred to my server I stumbled upon windows robocopy function. It's basically an enhanced copy function that allows me to copy the missions on my client machine to the server on every restart and log it. The script can also mirror directories and delete unwanted files in the destination which are not in the source directory:

 

Using the server restart batch script, looks something like this:

@echo off

:loop

CD "C:\Users\XXXXXXX\DCS.openbeta_server\Logs"

Start robocopy /MIR "Z:\DCS\XXXXXXXXXXXX" "C:\Users\XXXXXXX\DCS.openbeta_server\Missions" /LOG+:Robocopy.log

Start "" /high "C:\Program Files\Eagle Dynamics\DCS World OpenBeta Server\bin\DCS_updater.exe"

timeout /t 14400 >null

REM timeout /t 60 >null

taskkill /f /im DCS.exe >nul

goto loop

Windows 10 64 bit | Intel i5-9600k OC 5 Ghz | RTX 2080 |VENGEANCE® LPX 32GB DDR 4 OC 3200

 

Hotas Warthog | Logitech G Flight Rudder Pedals | Track IR 4

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...