@ECHO off set COMPILER=C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe set NAMES=win-control-server win-key-server IF EXIST "%COMPILER%" ( ECHO [Autohotkey] Compiling ahk binaries... DEL /f *.exe 2>NUL FOR %%n IN (%NAMES%) DO ( "%COMPILER%" /silent /in %%n.ahk IF NOT EXIST "%%n.exe" ( ECHO Error in compiling %%n.exe. EXIT /b 2 ) ) ) ELSE ( ECHO [Autohotkey] Autohotkey compiler not found! You can download Ahk2Exe via Autohotkey menu. EXIT /b 1 )