@echo off del tmp for %%A in (*.SRC) do ..\XPL\COM\XPL %%A >>tmp ..\LINK\COM\LINK XREF >>tmp del COM\*.OBJ >>tmp move *.OBJ COM >>tmp del COM\XREF.OLD >>tmp ren COM\XREF.COM XREF.OLD >>tmp move *.COM COM >>tmp edit tmp