if exist *.txt del *.txt
If you want to suppress all error messages, you can do this:
del *.txt 2>NUL
surround with an if exists...
or use a different delete utility {like 'rm' from the mks tools}
or take a look at forfiles.exe - that should do what you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With