繁体   English   中英

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

[英]Windows Command Prompt hangs after running batch file

我正在尝试设置一个快速批处理文件,它在运行时设置我的开发环境(在 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

一切正常,除了设置完所有内容后,我的命令 window 挂起,我无法 Ctrl+C 退出。 命令提示符仅在关闭 4ed 程序后完成。 有没有办法修改我的批处理文件以防止这种情况发生,所以我不必打开另一个命令提示符 window?

我想到了:

@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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM