PocketMine-MP/start.cmd
2013-09-04 13:29:27 +02:00

30 lines
735 B
Batchfile

@echo off
TITLE PocketMine-MP server software for Minecraft: Pocket Edition
COLOR 0F
mode con: cols=110
cd /d %~dp0
FOR /F "tokens=*" %%i in ('php -r "echo 1;"') do SET PHPOUTPUT=%%i
if not "%PHPOUTPUT%"=="1" (
echo [ERROR] Couldn't find PHP binary in PATH.
echo [INFO] Please use the Windows installer from the homepage
pause
) else (
if exist php.cmd (
if exist bin\ansicon.exe (
bin\ansicon.exe php.cmd -d enable_dl=On PocketMine-MP.php --enable-ansi %*
) else (
php.cmd -d enable_dl=On PocketMine-MP.php %*
)
) else (
if exist bin\ansicon.exe (
bin\ansicon.exe php -d enable_dl=On PocketMine-MP.php --enable-ansi %*
) else (
php -d enable_dl=On PocketMine-MP.php %*
)
)
if errorlevel 1 (
pause
)
)