if statement - Can I have an IF block in DOS batch file? - Stack Overflow
Maybe a bit late, but hope it hellps: @echo off if %ERRORLEVEL% == 0 ( msg * 1st line WORKS FINE rem You can relpace msg * with any othe operation... goto Continue1 ) :Continue1 If exist "C:\Python31" ( msg * 2nd line WORKS FINE rem You can relpace ms...