Skip to content

Instantly share code, notes, and snippets.

@KSAMissionCtrl
Created October 25, 2020 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KSAMissionCtrl/889b6732f4c98421897a5e4c869cf03e to your computer and use it in GitHub Desktop.
Save KSAMissionCtrl/889b6732f4c98421897a5e4c869cf03e to your computer and use it in GitHub Desktop.
Monitors a folder for a quicksave to pop up and then renames it numerically, sequentially, so multiple quicksave files can be generated by kOS
@echo off
SET /A count = 0
echo quicksave renaming watch active
:loop
if exist "D:\Steam Games\steamapps\common\Kerbal Space Program\saves\Kerbal Space Agency\quicksave.sfs" (
timeout 1
rename "D:\Steam Games\steamapps\common\Kerbal Space Program\saves\Kerbal Space Agency\quicksave.sfs" "quicksave%count%.sfs"
set /A count = %count% + 1
)
goto loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment