运行批处理文件后,Windows命令提示符挂起。

问题描述 投票:0回答:1

我试图设置一个快速批处理文件,它在运行时设置我的开发环境(在Windows 10上)。到目前为止,我所做的是。

@echo off

w:
pushd directory_of_project

call build.bat //build project
call vsdbg.bat //run a batch file which opens up visual studio's debugger
call 4ed //Open my code editor exe

popd

一切都很好,除了在所有设置完成后,我的命令窗口挂起,我无法按Ctrl+C键退出。命令提示符只有在关闭4ed程序后才会完成。有没有办法修改我的批处理文件来防止这种情况发生,这样我就不用打开另一个命令提示符窗口了?

windows cmd command-line command-prompt
1个回答
0
投票

我想明白了。

@echo off

w:
pushd directory_of_project

call build.bat //build project
call vsdbg.bat //run a batch file which opens up visual studio's debugger
start 4ed //Open my code editor exe

popd
© www.soinside.com 2019 - 2024. All rights reserved.