1234567891011121314151617181920212223242526272829 |
- @echo off
- chcp 65001
- if "%1"=="h" goto begin
- start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
- :begin
- taskkill /IM copter-train.exe /F
- taskkill /IM config-server.exe /F
- taskkill /IM nats-server.exe /F
- timeout /t 1
- echo 启动bus服务中...
- cd ".\nats-bus"
- start config-server.exe
- timeout /t 3
- echo 启动主服务中...
- cd "..\"
- start /B copter-train.exe
- echo 启动完成
- echo "管理后台: http://ip:8101/web"
- @REM timeout /t 5
- @REM 开机自动启动
- @REM 创建一个快捷方式。右键点击你的批处理文件,然后选择 "创建快捷方式"。
- @REM 打开启动文件夹。按下 Win + R 键来打开 "运行" 对话框,然后输入 shell:startup 并按下 Enter 键。
- @REM 将快捷方式复制到启动文件夹。将你在第一步中创建的快捷方式复制并粘贴到启动文件夹中。
|