I am rusty at Batch Files and need to create a DOS batch file that tests for errorlevels 0-3 takes the following action, and then ends.
(a) Display the DOS version if errorlevel 0
(b) Give the tree command if errorlevel 1
(c) Give the chkdsk command if errorlevel 2
(d) Display the time if errorlevel 3
(e) Ends if errorlevel is 4 or greater
I seem to run into trouble with the errorlevel 0 - throws my whole file off.
Can anybody help?
(a) Display the DOS version if errorlevel 0
(b) Give the tree command if errorlevel 1
(c) Give the chkdsk command if errorlevel 2
(d) Display the time if errorlevel 3
(e) Ends if errorlevel is 4 or greater
I seem to run into trouble with the errorlevel 0 - throws my whole file off.
Can anybody help?