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.m goto again if exist %1 goto usage cm %1 >%1.err if errorlevel 1 goto error del %1.err goto again :error b %1.m -mnext_error goto loop :again shift goto loop :usage echo Usage: cmac filenames... (no .m) :exit