ok, now i understand
thank you both
BR
Serge
----- Original Message -----
From: "Andy Schmidt" <[email protected]>
To: <[email protected]>
Sent: Monday, February 09, 2009 12:15 PM
Subject: RE: [Declude.JunkMail] Errorlevel not working
Because it does a >= comparison, you need to start with the greatest
value
and work your way lower.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Serge
Sent: Sunday, February 08, 2009 7:58 PM
To: [email protected]
Subject: Re: [Declude.JunkMail] Errorlevel not working
found a solution
This works on both cases
if errorlevel 1 goto gziperr1
if errorlevel 0 goto gziperr0
but this does not work
if errorlevel 0 goto gziperr0
if errorlevel 1 goto gziperr1
but WHY ???
----- Original Message -----
From: "Serge" <[email protected]>
To: <[email protected]>
Sent: Monday, February 09, 2009 12:49 AM
Subject: Re: [Declude.JunkMail] Errorlevel not working
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" <[email protected]>
To: "Serge" <[email protected]>; "Message Sniffer Community"
<[email protected]>
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: [email protected]
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/downloa
d/release/
http://www.imprimia.com/products/software/freeutils/ldap2aliases/download/re
lease/
---
This E-mail came from the Declude.JunkMail mailing list. To
unsubscribe, just send an E-mail to [email protected], 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 [email protected], 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 [email protected], 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 [email protected], 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 [email protected], and
type "unsubscribe Declude.JunkMail". The archives can be found
at http://www.mail-archive.com.