- 新建.txt文本
- 编辑文本,注入启动命令
@echo off
e:
cd CQ/project/flow
start cmd /c "title flow&&yarn start"
cd ../flow_g6
start cmd /c "title flow_g6&&yarn start"
cd ../flow_5c
start cmd /c "title flow_5c&&yarn start"
pause
- 将文本后缀改为.bat
- 双击.bat文件即可一键启动多个项目
@echo off
e:
cd CQ/project/flow
start cmd /c "title flow&&yarn start"
cd ../flow_g6
start cmd /c "title flow_g6&&yarn start"
cd ../flow_5c
start cmd /c "title flow_5c&&yarn start"
pause