【发布时间】:2018-02-05 01:06:00
【问题描述】:
好的,所以我想从一个批处理文件运行我的整个工作环境...
我想要达到的目标...
- 打开新的 powershell,打开我的 API 文件夹并从该文件夹运行 VS Code 编辑器 (cd c:\xy; code .)
- 运行 API express 服务器(节点。)
- 打开新的 powershell,将 dir 更改为我的 angular cli 应用程序并在那里运行 vscode (cd c:\xy-app; code .)
- 运行服务
- 在 ng 服务完成后在 http://localhost:4200 上打开 chrome
希望这是有道理的... 我在我的 run-work.bat 中试过这个
cd C:\xy
code .
node .
cd C:\xy-app
code .
ng serve
它在运行第一个 code . 后停止,因此 node . 不会被执行
有什么想法吗?
我要运行连续列出的所有命令!可能在 5 个打开的窗口中终止.... powershell 1(运行节点服务器)powershell 2(运行 Angular 应用程序)vscode 1(使用 API 应用程序)、vscode 2(使用 Angular 应用程序)和一个 chrome 窗口
【问题讨论】:
-
您想要一个批处理文件并单击它应该会打开
vs-codelaunch the app等?对吗? -
不,我要依次运行所有列出的命令!可能在 5 个打开的窗口中终止.... powershell 1(运行节点服务器)powershell 2(运行 angular 应用程序)vscode 1(使用 API 应用程序)、vscode 2(使用 Angular 应用程序)和一个 chrome 窗口
标签: angular batch-file visual-studio-code