if exist "%targetpath%" ( rem ) else ( echo targetpath DOES NOT EXISTS: %targetpath% pause exit /b 1 )