@echo off rd /s /q bin IF %ERRORLEVEL% NEQ 0 If /I Not "%CMDCMDLINE:"=%" == "%COMSPEC% " pause