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

Jerold Schulman

January 28, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like