cURL / Mailing Lists / curl-users / Single Mail

curl-users

Windows and !@EXITCODE env variable

From: Robert <5dx6ts03_at_sneakemail.com>
Date: 6 Dec 2004 22:46:11 -0000

Via a .bat file, I've got to check the return status of curl.
It doesn't set the %errorlevel% env variable like most programs do, but instead it seems to set this "!EXITCODE" one.
And it does it very strangely!

I can't access the %!EXITCODE% variable after curl sets it.

For example, I'd expect:
echo %!EXITCODE%
to display the same value for %!EXITCODE% that I see when I do an "env".
But it doesn't.
It acts like %!EXITCODE% isn't set.

Anyone have a clue for me??

Thanks in advance!
Received on 2004-12-06