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