Do MS-DOS built-in commands return an error\exit code?

Viewed 10996

I have not found a way to get the error code, if returned, of rmdir. It seems like the MS-DOS internal commands do not return an error code. Can someone confirm that?

How does a script that uses these commands know if the commands succeed or fail in order to decide the next step? The easiest way is to read their return code, if it is returned.

Thanks in advance.

4 Answers
Related