@echo off del tmp for %%A in (*.src) do xpl %%A >>tmp 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