Hello sandy
Not true
even if i comment echo line, i still get "gzip OK errorlevel 0, Unzipping "
even if the file if corrupted
gzip -d -f -t zydt3crn.snf.gz
if errorlevel 0 goto gziperr0
if errorlevel 1 goto gziperr1
GOTO END
:gziperr0
Echo gzip OK errorlevel 0, Unzipping
GOTO END
:gziperr1
Echo gzip errorlevel 1
Echo gzip .gz file did not test OK
GOTO END
:END
----- Original Message -----
From: "Sanford Whiteman" <sa...@cypressintegrated.com>
To: "Serge" <declude.junkmail@declude.com>; "Message Sniffer Community"
<snif...@sortmonster.com>
Sent: Monday, February 09, 2009 12:39 AM
Subject: Re: [Declude.JunkMail] Errorlevel not working
I have a problem with the branching in the batch below
even when the test fails and "echo %errorlevel% " shows 1
the branching still goes to gziperr0
Does enyone knows why and how to fix ?
When you echo the errorlevel, the errorlevel is reset to the value
returned by echo().
--Sandy
------------------------------------
Sanford Whiteman, Chief Technologist
Broadleaf Systems, a division of
Cypress Integrated Systems, Inc.
e-mail: sa...@cypressintegrated.com
SpamAssassin plugs into Declude!
http://www.imprimia.com/products/software/freeutils/SPAMC32/download/release/
Defuse Dictionary Attacks: Turn Exchange or IMail mailboxes into IMail
Aliases!
http://www.imprimia.com/products/software/freeutils/exchange2aliases/download/release/
http://www.imprimia.com/products/software/freeutils/ldap2aliases/download/release/
---
This E-mail came from the Declude.JunkMail mailing list. To
unsubscribe, just send an E-mail to imail...@declude.com, and
type "unsubscribe Declude.JunkMail". The archives can be found
at http://www.mail-archive.com.
---
This E-mail came from the Declude.JunkMail mailing list. To
unsubscribe, just send an E-mail to imail...@declude.com, and
type "unsubscribe Declude.JunkMail". The archives can be found
at http://www.mail-archive.com.