@echo off set CurrentDIR=%CD% pushd C:\Program Files\teraterm ttpmacro.exe /V %CurrentDIR%\LoadCode.ttl %CurrentDIR:\=/% Release Halt popd