Re: error code ??
The
if not errorlevel 0
never happens. Because if errorlevel 0
means if errorlevel >= 0
(read if /?
). Hence your condition is the same as if errorlevel < 0
, what is never true. Use if errorlevel 1
, as all the examples on this site do.