Skip to content

Instantly share code, notes, and snippets.

View KSAMissionCtrl's full-sized avatar
💭
Spacing space, sciencing all the science

Kerbal Space Agency KSAMissionCtrl

💭
Spacing space, sciencing all the science
View GitHub Profile
@KSAMissionCtrl
KSAMissionCtrl / rename.bat
Created December 30, 2020 15:27
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