Added .BAT for async command I/O in one window

This commit is contained in:
Shoghi Cervantes Pueyo 2012-12-17 19:05:50 +01:00
parent adb795be22
commit 0086900469
3 changed files with 34 additions and 2 deletions

29
start.bat Normal file
View file

@ -0,0 +1,29 @@
@echo off
TITLE Pocket-Minecraft-PHP Server - by @shoghicp
echo.
echo -
echo / \
echo / \
echo / POCKET \
echo / MINECRAFT PHP \
echo ^|\ @shoghicp /^|
echo ^|. \ / .^|
echo ^| .. \ / .. ^|
echo ^| .. ^| .. ^|
echo ^| .. ^| .. ^|
echo \ ^| /
echo \ ^| /
echo \ ^| /
echo \ ^| /
echo.
echo.
FOR /F "tokens=*" %%i in ('php.exe -r "echo 1;"') do SET PHPOUTPUT=%%i
if not %PHPOUTPUT%==1 (
echo [ERROR] Couldn't find PHP in PATH.
pause
exit
)
START /B CMD /C CALL php server.php
START /B /WAIT php input.php 1
pause
exit