@echo off
setlocal
cd /d %~dp0
set out=out
if not exist %out%\ md %out% || exit /b 1
for %%f in ("*.ico") do if not exist %out%\%%f copy /y "%%f" %out%
for %%f in ("*.bmp") do if not exist %out%\%%f copy /y "%%f" %out%
type tt.*.ahk 2>nul | tt -c"" -d";;" -o%out%/ scripts.ahk  || pause