How does one create a report file where a DEL command failed to execute properly?
I would have thought you'd do:
DEL FILENAME.TXT ECHO "FILENAME.TXT" >> REPORT.TXT
but all it does is make an empty report file, regardless of if it finds FILENAME.TXT or not. I'm wanting to create a report file where if it failed to delete FILENAME.TXT for whatever reason that the message that pops up is dumped into REPORT.TXT.
Any ideas?