echo off rem Very basic macro to make the compile/correct task easier. Uses the error 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 cc1 -i %1 >%1.err if errorlevel 1 goto error cc2 %1 >%1.err if errorlevel 1 goto error cc3 %1 >%1.err if errorlevel 1 goto error cc4 %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: c86cc filenames... (no .c) :exit