In the setup.inf, is it possible to reset the ErrorLevel to "0" manually?
For example -
If "%ErrorLevel%" == "12345678" Then "Set:ResetErrorLevel" EndIf
[Set:ResetErrorLevel]
Set ERRORLEVEL = "0"
(I have tried the above and debugger says invalid)
Reset ErrorLevel to "0" manually?
-
- Moderator
- Posts: 8018
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: Reset ErrorLevel to "0" manually?
I don´t think so.
Just an idea for another approach: start another executable that always returns errorlevel 0 to reset it.
Just an idea for another approach: start another executable that always returns errorlevel 0 to reset it.
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Re: Reset ErrorLevel to "0" manually?
Thanks Hendrik...the below works fine
Code: Select all
If "%ErrorLevel%" == "12345678" Then "Set:ResetErrorLevel" EndIf
[Set:ResetErrorLevel]
Call CMD /C EXIT 0
Who is online
Users browsing this forum: No registered users and 1 guest