@echo off setlocal if exist *.dat del *.dat if exist *.cat del *.cat