BATCH - What is the easiest way to reset ERRORLEVEL to zero?
Translations
Englishالعربية
български
català
中文
čeština
dansk
Nederlands
eesti
suomi
français
Deutsch
Ελληνικά
עברית
हिंदी
magyar
Bahasa Indonesia
italiano
日本語
한국어
latviešu
lietuvių
norsk
polski
Português
română
русский
slovenčina
slovenski
español
svenska
ไทย
Türkçe
українська
Tiếng Việt
I have a post-build event that runs some commands for a c# project. The last command would sometimes cause the ERRORLEVEL value not equils to zero and then the build fails.
I want to append an extra line of command to always set the ERRORLEVEL value to zero. What is the most convenient way to do that?
This question and answers originated from www.stackoverflow.com
Question by user95319 (7/11/2009 1:31:36 PM)
Answer |
I found that "exit 0" looks like a good way to deal with this problem.
Answer by user95319
Find More Answers
Related Topics batch ms-dos postbuild-event prebuild errorlevel