Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo off
- set save_path=C:\Users\Administrator\AppData\Local\FactoryGame\Saved\SaveGames\common\
- set server_path=C:\Users\Administrator\Downloads\steamcmd\steamapps\content\app_526870\depot_526871\
- set backup=backup\
- set stamp=%DATE:/=-%_%TIME::=-%
- cd "%save_path%"
- for /f %%i in ('dir /b /a-d /od ') do set LAST=%%i
- echo The most recently created file is %LAST%
- IF %LAST%=="NordLife.sav" (
- copy "NordLife.sav" "%backup%%stamp%_NordLife.sav"
- echo Found NordLife.sav, Backup Now
- ) ELSE (
- echo Found %LAST%, Backup Now to %backup%%stamp%_NordLife_last.sav
- copy "%LAST%" "%backup%%stamp%_NordLife_last.sav"
- echo Copy Mailfile NordLife.sav to %backup%%stamp%_NordLife.sav
- copy "NordLife.sav" "%backup%%stamp%_NordLife.sav"
- echo Delete old NordLife.sav
- del NordLife.sav
- timeout /T 3 /nobreak
- echo Rename %LAST% to NordLife.sav
- ren "%LAST%" "NordLife.sav"
- )
- timeout /T 3 /nobreak
- tasklist /fi "imagename eq FactoryGame-Win64-Shipping.exe" |find ":" > nul
- if errorlevel 1 (
- echo Stoppe SatisServer
- taskkill /f /im "FactoryGame-Win64-Shipping.exe"
- )
- cd "%server_path%"
- echo Starte SatisServer
- timeout /T 3 /nobreak
- start "/min" "FactoryGame.exe" -nosplash -nullrhi -nosound -NoSteamClient -log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement