@liruiyi962464
2025-03-07T00:08:01.000000Z
字数 831
阅读 78
windows部署
@echo off
if "%1"=="h" goto begin
cd C:\Users\1\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
C:
start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
#:begin
java -jar "C:\wuliugang1\java\daping1\jeecg-boot-module-system-3.0.jar"
@echo off
if "%1"=="h" goto begin
cd C:\Users\1\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
C:
start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
#:begin
java -jar "C:\wuliugang1\java\daping2\jeecg-boot-module-system-3.0.jar"
cd C:\wuliugang1\nginx-1.20.2
C:
nginx -s stop
nginx -s stop
nginx -s stop
start nginx
#exit
// 其中Users后边跟用户名 其他一样 AppData是隐藏文件
C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup