Skip to content

Instantly share code, notes, and snippets.

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 Dec 30, 2020
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...
View rename.bat
@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