分享个我的[Asm] 纯文本查看 复制代码 [url=home.php?mod=space&uid=266048]@echo[/url] off
mode con cols=48 lines=30&color a
@title n3verl4nd QQ:253373586
:start
@echo. 1. set java environment variable
@echo. 2. install mysql services
@echo. 3. start mysql and apache
@echo. 4. stop mysql
@echo. 5. exit
@echo.================================================
@set /p choice=Please make a choice:
@echo.================================================
@if /i %choice%==1 goto 1
@if /i %choice%==2 goto 2
@if /i %choice%==3 goto 3
@if /i %choice%==4 goto 4
@if /i %choice%==5 goto end
:1
wmic ENVIRONMENT where "name='JAVA_HOME'" delete
wmic ENVIRONMENT where "name='CLASSPATH'" delete
wmic ENVIRONMENT create name="JAVA_HOME",username="<system>",VariableValue="%~dp0sdk"
wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%path%;%~dp0sdk\bin;%~dp0sdk\jre\bin;%~dp0mysql\bin"
wmic ENVIRONMENT create name="CLASSPATH",username="<system>",VariableValue=".;%~dp0sdk\lib;%~dp0sdk\lib\tools.jar"
@pause
@cls
[url=home.php?mod=space&uid=189420]@goto[/url] start
:2
@cd /d %~dp0mysql
@taskkill /F /im mysqld.exe
my.ini
@cd /d %~dp0mysql\bin
mysqld -remove
mysqld install mysql --defaults-file="%~dp0mysql\my.ini"
@pause
@cls
@cd /d %~dp0
@goto start
:3
net start mysql
@cd /d %~dp0tomcat\bin
start startup.bat
@pause
@cls
@cd /d %~dp0
@goto start
:4
net stop mysql
@pause
@cls
@goto start
:5
:end
exit |