Batch file and DEL errorlevel 0 issue
The batch has to remove files and directories from specific locations and output success or stdout/stderr messages to a new .txt file. I have created the most of the script and it performs exactly as it should, except when the deletion is successful it moves forward to the next line rather than echo a 'successful' message on the log. echo Basic Deletion Batch Script > results.txt @echo off call :filelog >> results.txt 2>&1 notepad results.txt exit /b :filelog call :delete new.txt call :delete newer.txt call :delete newest.txt call :remove c:\NoSuchDirectory GOTO :EOF :delete echo deleting %1