if [%1]==[""] goto :eof if not exist %1 ( echo !! Verzeichnis oder Datei %1 existiert nicht !! exit /B 42 ) exit /B 0