echo off rem Very basic macro to make the compile/correct task easier. Uses the errorfix rem macro to locate errors after an unsucessful compile, then attempts to rem compile again. Note the invocation of brief with the -m option. if .%1 == . goto usage :loop if .%1 == . goto exit if not exist %1.c goto again if exist %1 goto usage lc1 %1 >%1.err if errorlevel 1 goto error lc2 %1 >%1.err if errorlevel 1 goto error del %1.err goto again :error b %1.c -mnext_error goto loop :again shift goto loop :usage echo Usage: lcc filenames... (no .c) :exit