| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
RE: detect if an upload/download is finished or failed
From: Roth, Kevin P. <KPRoth_at_MAPLLC.com>
Date: Mon, 12 Jan 2004 11:00:55 -0500
Interesting code, but just be aware that it ONLY works on Win95 or Win98 (and perhaps Win ME).
It breaks on Win2000 because the value of ERRORLEVEL gets reset by the first FOR statement. WinNT users and up (Win2k, WinXP, Win2003 etc) should take advantage of the "built-in" (to the windows command shell) %ERRORLEVEL% environment variable, and also the built-in math functions (e.g. IF %ERRORLEVEL% GTR 5 would ask whether errorlevel is Greater Than 5) or a GOTO type statement (e.g. GOTO handle_%ERRORLEVEL% which would jump to a label such as :handle_6).
- Kevin
-----Original Message-----
FYI, i have found a batch program who show errorlevel code on win9x,
when i want someone, i'll give you ;) but it was VERY hard to find it
=======================================
-------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info