cd /D "%~dp0." :x cd HiNC HiNcServer.exe echo call restart! cd .. goto x