JSI Tip 1032. DELete command returns ERRORLEVEL 2 for no files found.

In every other Microsoft Operation System, the DEL command returns ERRORLEVEL 0 if no files were found.

Windows NT 4.0 returns ERRORLEVEL 2.

If you have batch files that you migrated, change them to reflect the new return value.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish