REM Test to see if this is a raw pear.bat (uninstalled version)SET TMPTMPTMPTMPT=@includSET PMTPMTPMT=%TMPTMPTMPTMPT%e_path@FOR %%x IN ("D:\xampp\php\pear") DO (if %%x=="%PMTPMTPMT%" GOTO :NOTINSTALLED)

REM Check PEAR global ENV, set them if they do not existIF "%PHP_PEAR_INSTALL_DIR%"=="" SET "PHP_PEAR_INSTALL_DIR=D:\xampp\php\pear"IF "%PHP_PEAR_BIN_DIR%"=="" SET "PHP_PEAR_BIN_DIR=D:\xampp\php"IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=D:\xampp\php\.\php.exe"GOTO :INSTALLED