REM Set the path to your php.exe here set phpPath="C:\xampp\php\php.exe" REM Start ManiaControl START "" /B %phpPath% -f "ManiaControl.php" 2>&1