batch-file - 在 vscode 中为 .bat 文件中的 'start' 命令打开一个新终端

标签 batch-file visual-studio-code

我有一个 运行.bat 使用以下命令创建文件:

start emulator.bat
react-native run-android

我正在运行我的 运行.bat 在 vscode 终端中。
'start' 命令在 vscode 之外打开一个新的命令行。

我想要的是该命令在 vscode 中打开一个新终端。
我怎样才能做到这一点?

更新:

我使用的原因 start emulator.bat是因为模拟器的输出看起来像这样(命令没有结束):

enter image description here

最佳答案

您只需要删除 start来自您的文件的命令。
您更新的代码:

emulator.bat
react-native run-android

关于batch-file - 在 vscode 中为 .bat 文件中的 'start' 命令打开一个新终端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47650357/

相关文章:

c# - 在 Vscode 中调试 C# 代码时出现 System.TypeLoadException

python - IO错误 : [Errno 0] Error while writing to output of Powershell in VSCode

windows - 在 Windows 批处理中用双引号“比较一个字符

c# - 关于.bat 脚本转义字符的识别?

batch-file - 批处理 : replace a line in a text file

visual-studio-code - VS-Code安装omnisharp错误无法验证第一个证书

visual-studio-code - VSCode:在项目中打开文件

go - 如何找到覆盖特定Go代码的测试?

windows - 在 Windows 批处理文件的 FOR 循环中转义星号

windows - 使用 Windows 批处理脚本保护 FTP