curl-users
Re: Error code 9009 from CLI
Date: Fri, 15 Feb 2013 11:54:17 +0100
"James Briggs" <mail_at_jbriggs.me> wrote:
> Windows 7 Enterprise - the return code from running curl.exe - it's not an
> actual message, just the result of the ERRORLEVEL directive:
>
> "curl.exe" -silent -x %PROXYINFO% -m 300 -O %TESTURL%
> echo Download #!ITERATION! completed or timed-out at %TIME% >> "log.txt"
> if %ERRORLEVEL% NEQ 0 echo ERROR - curl returned error code %ERRORLEVEL%
"%ERRORLEVEL%" is not the same as "ERRORLEVEL". Read this:
http://blogs.msdn.com/b/oldnewthing/archive/2008/09/26/8965755.aspx
So try to change your last line to:
if ERRORLEVEL NEQ 0 echo ERROR - curl returned error code %ERRORLEVEL%
--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-15