I am disappointed to see
S:\!DJ DAP>del nofile || pause
Could Not Find S:\!DJ DAP\nofile
S:\!DJ DAP>
i.e. no pause. Cause is revealed by:
S:\!DJ DAP>echo Exit Code is %errorlevel%
Exit Code is 0
What's the most direct workaround?
PS Though official DEL docs don't say errorlevel should be set upon error, this
S:\!DJ DAP>del
The syntax of the command is incorrect.
S:\!DJ DAP>echo Exit Code is %errorlevel%
Exit Code is 1
and this https://ss64.com/nt/del.html suggest it should. By no stretch is missing target file not an error!