@echo off
Call Pn\config.cmd
setlocal
Prompt -$g

if not exist Apache\logs\httpd.pid goto startsvc
echo   ____________________________________________________________
echo  ^|                                                            ^|
echo  ^|    Apache 似乎已经运行.                                    ^|
echo  ^|____________________________________________________________^|

set input=n
set /p input= -^> 继续执行? (y/N) 
echo.
if "%input%"=="Y" goto startsvc
if "%input%"=="y" goto startsvc
goto end

:startsvc

%Pnvbs% "setpath `%php_ver%`"

cd Apache
bin\httpd.exe -k install -n %htd_srv_name%
bin\httpd.exe -k start -n %htd_srv_name% || pause
cd ..

:end
Prompt