Reset ErrorLevel to "0" manually?

Post Reply
User avatar
skdb
Posts: 7
Joined: 18. Mar 2005, 11:00
Contact:

Reset ErrorLevel to "0" manually?

Post by skdb » 02. Dec 2013, 16:25

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)
Sean Brown
Workplace Consultant
sean.brown@lundm-bit.de

http://lundm-bit.de

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 7962
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Reset ErrorLevel to "0" manually?

Post by Hendrik_Ambrosius » 02. Dec 2013, 18:07

I don´t think so.
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.

User avatar
skdb
Posts: 7
Joined: 18. Mar 2005, 11:00
Contact:

Re: Reset ErrorLevel to "0" manually?

Post by skdb » 03. Dec 2013, 09:26

Thanks Hendrik...the below works fine :-)

Code: Select all

If "%ErrorLevel%" == "12345678" Then "Set:ResetErrorLevel" EndIf

[Set:ResetErrorLevel]
Call CMD /C EXIT 0
Sean Brown
Workplace Consultant
sean.brown@lundm-bit.de

http://lundm-bit.de

Post Reply

Return to “Packaging”

Who is online

Users browsing this forum: No registered users and 7 guests