@echo off cd /d "%~dp0" set PHP="D:\dev\xampp\php" :task %PHP%\php import.php if errorlevel = 23 goto task