cd\parse for %%a in (*.sgm) do nsgmls -s -g -cnsgmls.cat -f%%a.log %%a for %%b in (*.log) do find /i ":" %%b >>parse.err del *.log amombat *.sgm exit