|
@echo off: b& I0 }/ K3 r j% R; B; ?6 W
diskw\home\admin\program\pskill.exe Apache.exe! F2 i' i7 F; w* ], Y$ `; v
IF NOT ERRORLEVEL 1 goto started/ L% j* v" S" q" s) r% V; N" B
set Disk=%1, r# N8 L+ D9 ~: D( c
IF "%Disk%"=="" set Disk=k& |# d4 G/ ]; G; G9 q m
rem create the disk: j; f0 x" B3 h6 K% H. q8 z* p
subst %Disk%: "diskw"
. i/ V5 M0 P/ [IF ERRORLEVEL 1 goto hint# S b* A4 g q" O" L
set apachepath=\usr\local\apache2\. b' t# y) E' m, n, |, c1 T) l
set programit=%Disk%:\home\admin\program\
( X/ R3 `( |$ y! o8 S `& mset closeit=%programit%close.bat %Disk%7 W8 `$ z, k5 S6 E$ ~! ^% D) Z
%Disk%:
9 S7 e6 N3 F8 [: S: I2 \# tcd \usr\local\php' _" M4 n; z2 M' X# s
CLS
7 B4 F' J. B$ H* _1 Aecho The server is working on the disk %Disk%:\ [http/127.0.0.1/a/]
4 P" M" b/ v$ y4 p; Bstart %Disk%:\home\admin\WWW\redirect.html
+ Z% q" f$ l! D# z$ J/ H q$ kstart %programit%miniserv.exe "%apacheit%" "%closeit%"- A; s; U; @8 ?0 G
goto end, D+ L3 e4 \( n. E- f
:hint
. F( S+ x& N& u {3 m/ vCLS
: x3 ~- H6 k0 d2 G4 x5 G5 d* Fecho 磁盘 %Disk% 正忙. 使用 终止网页系统.bat [disk letter]2 G; u* Y/ D( L; q, E3 F s
goto pause
8 w' ]+ N% k+ R7 K: {9 _:started" G8 S3 R4 F6 U" K+ J
CLS
" }/ @) H" L4 r& fecho 错误!!! 6 b5 k t& m1 O; E& m# N( d
echo 网页系统已经开启. 使用 终止网页系统.bat
+ r. O' F' Q& H+ R! M:pause3 R& }6 c) E2 U# ?# J' B' p' P/ B
echo .% Z+ K7 V2 c: A5 N: }5 r
pause. R! z+ L$ ^; Y S0 p5 u$ S# O
:end8 U- D# U7 G5 v+ D3 R) U
6 Y( v. H/ T; W* J" `: T% [
|
|