Words do not say, copy the following content, save into a bat file, put into the Nginx directory.
====================================================
@echo off
Effects of REM Current bat
Echo ==================begin========================
Cls
SET Nginx_path=d:
SET nginx_dir=d:\tools\nginx-1.5.12\
Color 0a
TITLE Nginx Management Program Control Panel
Cls
ECHO.
ECHO. * Nginx Management Program *
ECHO. * Created 2013-10-15 *
ECHO.
: MENU
ECHO. * Nginx Process List *
tasklist|findstr/i "Nginx.exe"
ECHO.
ECHO. [1] Start Nginx
ECHO. [2] Close Nginx
ECHO. [3] Restart Nginx
ECHO. [4] Exit
ECHO.
ECHO. Please enter the serial number of the selected item:
set/p id=
IF "%id%" = = "1" GOTO start
IF "%id%" = = "2" GOTO stop
IF "%id%" = = "3" GOTO restart
IF "%id%" = = "4" EXIT
PAUSE
: Start
Call:startnginx
GOTO MENU
: Stop
Call:shutdownnginx
GOTO MENU
: Restart
Call:shutdownnginx
Call:startnginx
GOTO MENU
: Shutdownnginx
ECHO.
ECHO. Close Nginx ...
taskkill/f/im nginx.exe > nul
ECHO. OK, close all nginx processes
Goto:eof
: Startnginx
ECHO.
ECHO. Start Nginx ...
IF not EXIST "%nginx_dir%nginx.exe" ECHO "%nginx_dir%nginx.exe" does not exist
%nginx_path%
CD "%nginx_dir%"
IF EXIST "%nginx_dir%nginx.exe" (
echo "Start" ' Nginx.exe '
Start "" Nginx.exe
)
ECHO. Ok
Goto:eof