我的批处理脚本在代码之后停止执行。命令

时间:2020-03-11 09:50:05

标签: batch-file visual-studio-code command-prompt

这是我简单的批处理脚本:

d:
cd D:/test_folder/test_project
start chrome -incognito http://localhost:19002
code .
expo start

该脚本最多执行code .行,然后提示我。博览会开始永远不会运行。可能是什么问题呢?在code .行之后如何继续执行?

编辑: 如果删除code .行,则文件将按预期工作。

1 个答案:

答案 0 :(得分:0)

在浏览了很多文章之后,我发现打开vs代码的方法是:

d:
cd D:/test_folder/test_project
start chrome -incognito http://localhost:19002
start "" code D:/test_folder/test_project
expo start

这可以按要求工作。