The Computer Oracle

How to check the exit code of the last command in batch file?

Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Quiet Intelligence

--

Chapters
00:00 Question
00:27 Accepted answer (Score 113)
00:52 Answer 2 (Score 13)
01:38 Answer 3 (Score 4)
02:21 Answer 4 (Score 1)
03:32 Thank you

--

Full question
https://superuser.com/questions/194662/h...

Question links:
[7-zip]: http://www.7-zip.org/

Answer 3 links:
[Conditional Execution || && | & operators...]: https://ss64.com/nt/syntax-conditional.h...
[What is the easiest way to reset ERRORLEVEL to zero?]: https://stackoverflow.com/a/45255111/817...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windowsxp #batch

#avk47