>>481
%errorlevel% という環境変数モドキのないdosでも使える
if not errorlevel 1 が正解