oh - also
%errorlevel% expands into a string representation of the current value of errorlevel, provided that there is not already an environment variable with the name ERRORLEVEL, in which case you will get its value instead. After running a program, the following illustrates errorlevel use:
Both answers taken from win2k - start->help
on the index tab type "if command"
<< JOC >>