Skip to content

Instantly share code, notes, and snippets.

@KSAMissionCtrl
Created December 30, 2020 15:27
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/5b8008d0670a4c839f14c2e6f56db745 to your computer and use it in GitHub Desktop.
Save KSAMissionCtrl/5b8008d0670a4c839f14c2e6f56db745 to your computer and use it in GitHub Desktop.
Keeps watch for a specific file name to show up in the directory then renames that file when it is found and goes back to waiting and watching...
@echo off
echo file renaming watch active
:loop
if exist "D:\Steam Games\steamapps\common\Kerbal Space Program\Ships\Script\operations.txt" (
timeout 1
rename "D:\Steam Games\steamapps\common\Kerbal Space Program\Ships\Script\operations.txt" "Kerbin II Orbital.ops.ks"
)
goto loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment