|
@echo off: m/ y( ^7 b6 R% p. z
diskw\home\admin\program\pskill.exe Apache.exe
6 L& C+ @) p& n" Z4 uIF NOT ERRORLEVEL 1 goto started
4 Y- s5 N- O" ?% s# }4 Lset Disk=%1
6 u* H8 u8 U$ k6 d. XIF "%Disk%"=="" set Disk=k
# W) ^1 v$ m3 B- s/ Vrem create the disk/ H: d2 D, X/ O( `# k6 Y- I
subst %Disk%: "diskw" y# f) D! h$ \+ s$ h7 D* }: W# x
IF ERRORLEVEL 1 goto hint
% a& i( E9 S# @# Dset apachepath=\usr\local\apache2\6 j8 f6 m2 |* G! l6 j
set programit=%Disk%:\home\admin\program\4 ^0 |4 \/ j4 t4 I% U0 k& O3 E$ j+ X
set closeit=%programit%close.bat %Disk%
1 G% j) ] K+ ?# b8 K# }3 N, p%Disk%:
1 i7 m @. U* g' Ccd \usr\local\php
9 p3 e' i- W7 v1 ~ d, nCLS ~. a3 ~0 X- ?0 U
echo The server is working on the disk %Disk%:\ [http/127.0.0.1/a/]
, ]; m9 c6 ~ N' |0 Z/ D% zstart %Disk%:\home\admin\WWW\redirect.html8 W% j1 B3 |% m2 |& V$ T
start %programit%miniserv.exe "%apacheit%" "%closeit%", a3 @6 j4 I7 l' k) N( r
goto end
/ J' m9 T# x- j- [. z:hint
3 P- s# F& o. n3 v: G' E* wCLS
+ l; m( B. g+ H3 X$ H( b! l# Jecho 磁盘 %Disk% 正忙. 使用 终止网页系统.bat [disk letter]) D7 X3 g2 s# b* u( G
goto pause
! [2 F/ q& M: A7 e' z$ I:started# i# Y# ?( A2 j$ @: u* l
CLS# I' O2 @" x& n: k9 h
echo 错误!!! : L5 t9 Z$ {1 T3 @1 \3 {0 [
echo 网页系统已经开启. 使用 终止网页系统.bat, L5 T. H5 z7 Z" \
:pause3 ~# Y3 T; Q6 ], W' m! x
echo .
& y I/ _1 j/ K4 V5 {; n9 a$ M3 k1 ?pause
# r! i1 h6 D. Y:end. W! x8 T, w% L
! R. z# M+ X4 `0 s$ E4 C' z
|
|