@echo off title Locating Attrib if not exist "%attrib%" set attrib=%WINDIR%\System32\attrib.exe if not exist "%attrib%" set attrib=%WINDIR%\SysWOW64\attrib.exe if not exist "%attrib%" for /f "delims=" %%a in ('"%where%" attrib.exe') do set attrib=%%a if not 0==%ERRORLEVEL% goto error if not exist "%attrib%" goto error echo attrib=%attrib% title Locating PHP if not exist "%php%" set php=%PROGRAMFILES%\PHP\php.exe if not exist "%php%" set php=%PROGRAMFILES(X86)%\PHP\php.exe if not exist "%php%" set php=%USERPROFILE%\Documents\Mirror\http\windows.php.net\download\releases\archives\php-5.6.7-Win32-VC11-x86.zip\php.exe if not exist "%php%" set php=C:\Public\Mirror\http\windows.php.net\download\releases\archives\php-5.6.7-Win32-VC11-x86.zip\php.exe if not exist "%php%" set php=D:\Public\Mirror\http\windows.php.net\download\releases\archives\php-5.6.7-Win32-VC11-x86.zip\php.exe if not exist "%php%" set php=E:\Public\Mirror\http\windows.php.net\download\releases\archives\php-5.6.7-Win32-VC11-x86.zip\php.exe if not exist "%php%" for /f "delims=" %%a in ('"%where%" php.exe') do set php=%%a if not 0==%ERRORLEVEL% goto error if not exist "%php%" goto error echo php=%php% title Locating SVN if not exist "%svn%" set svn=%PROGRAMFILES%\TortoiseSVN\bin\svn.exe if not exist "%svn%" set svn=%PROGRAMFILES%\Subversion\bin\svn.exe if not exist "%svn%" set svn=%PROGRAMFILES(X86)%\TortoiseSVN\bin\svn.exe if not exist "%svn%" set svn=%PROGRAMFILES(X86)%\Subversion\bin\svn.exe if not exist "%svn%" for /f "delims=" %%a in ('"%where%" svn.exe') do set svn=%%a if not 0==%ERRORLEVEL% goto error if not exist "%svn%" goto error echo svn=%svn% title Normalizing working copy chcp 65001 > NUL set LC_ALL=en_US "%php%" -c "%~dpn0.ini" -f "%~dpn0.php" %1 if not "-nopause"=="%2" title Done if not "-nopause"=="%2" pause exit /b :error if not "-nopause"=="%2" title Error if not "-nopause"=="%2" pause exit /b 255