--What it does--
Run Backup_pd2save.bat after each game to make a back up of your Payday 2 save file into a folder named with year, month, day, hour, minute.
You can edit the directories as needed (open the .bat in notepad, edit, save), but they are set for the default install path.
NOTE: you WILL need to change "YOURNUMBER" in the SavegamePath to your personal number.
--CODE BELOW--
@ECHO OFF
COLOR E0
TITLE BACKUP_pd2saves
ECHO Backing up PD2 save file...
SET "SavegamePath=C:\Program Files (x86)\Steam\userdata\YOURNUMBER\218620\remote\save098.sav"
SET "DestinationFolder=C:\Backup\PAYDAY2SAVEFILES"
:: Do NOT edit the following lines
IF NOT "%OS%"=="Windows_NT" GOTO:EOF
WMIC.EXE Alias /? >NUL 2>&1 || GOTO:EOF
FOR /F "skip=1 tokens=1-6" %%G IN ('WMIC Path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table') DO (
IF "%%~L"=="" GOTO s_done
SET _yyyy=%%L
SET _mm=00%%J
SET _dd=00%%G
SET _hour=00%%H
SET _minute=00%%I
)
:s_done
ECHO creating backup of PD2 save files...
XCOPY "%SavegamePath%" "%DestinationFolder%%_yyyy%%_mm:~-2%%dd:~-2%%_hour:~-2%%_minute:~-2%" /Y
EXIT