@echo off for %%f in (??) do ( echo TEST %%f copy %%f abs.in > nul ../abs.exe fc /w %%f.a abs.out if errorlevel 1 exit )