Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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