Advertisement
Arageus

ScrapMechanic auto-saver

May 31st, 2020
1,289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set gamesavepath="c:\Users\<username>\AppData\Roaming\Axolot Games\Scrap Mechanic\User\User_<someUserNumbers>\Save\Survival"
  2. set backuplocation="d:\_BACKUPS\ScrapMechanic\"
  3. set autosavetimer=300
  4.  
  5. :wait
  6. tasklist | find /i "ScrapMechanic.exe" >nul 2>&1
  7. if errorlevel 1 goto wait
  8.  
  9. :autosave
  10. set folder="%backuplocation%\%date%_%time:~0,2%-%time:~3,2%-%time:~6,2%"
  11. tasklist | find /i "ScrapMechanic.exe" >nul 2>&1
  12. if not errorlevel 1 (
  13. xcopy %gamesavepath%\* %folder% /i /s
  14. timeout /t %autosavetimer% /nobreak
  15. goto autosave
  16. ) else (
  17. exit
  18. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement