Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- ::Replace the following path with the path to your own savegame (works with other games)
- Set Save=C:\Program Files (x86)\Steam\userdata\xxxxxxxx\582010\remote\SAVEDATA1000
- ::The following line checks if a folder specific for the backups exists.
- ::You can replace MHWBackup with another directory as long as it only stores backups for a specific game.
- if not exist MHWBackup mkdir MHWBackup & cd MHWBackup & goto backup
- cd MHWBackup
- :RUN
- ::Takes the newest file in the MHWBackup folder which should always be the newest backup.
- ::File is then compared to the current savegame in the steam directory.
- for /f "tokens=*" %%a in ('dir /b') do (
- FC /b "%Save%" "%%a" >nul
- if errorlevel 1 goto backup
- echo No new save detected.
- goto END
- )
- :BACKUP
- ::Backup only if differences are found. Month-day-year-hour-minute format.
- set FILENAME=MHW_Save_%date:~4,2%-%date:~7,2%-%date:~10,4%_%time:~0,2%-%time:~3,2%
- copy /Y /V "%Save%" "%FILENAME%" >nul
- ::Use Compact /u * in the MHWBackup directory to decompress before copying back into the steam folder.
- Compact /c "%FILENAME%" >nul
- :END
- ::Can change the timer by adjusting the 3600 number. Current is 1 hour.
- ::Can be manually skipped by any keypress.
- Timeout /T 3600
- cls
- Goto RUN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement