Create a new cmd.exe window from within another cm

2019-01-10 20:15发布

I am in the process of setting up CruiseControl.NET. The problem I am having is that I am running CC as a console application and when my build completes successfully and executes (using exec) it launches it within the CruiseControl DOS prompt. I am just using simple batch files to launch my app but having it run within the same prompt as CC is causing CC to think the build continues as long as my app runs.

Are there command line parameters to cmd.exe that will spawn another separate prompt window?

8条回答
太酷不给撩
2楼-- · 2019-01-10 20:40

simple write in your bat file

@cmd

or

@cmd /k "command1&command2"
查看更多
神经病院院长
3楼-- · 2019-01-10 20:42

I think this works:

start cmd.exe
查看更多
登录 后发表回答