Advertisement
GL1TCH3D

Steam Save Script

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