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?
You can just type these 3 commands from command prompt:
start
start cmd
start cmd.exe
opens a separate window
opens the batch file and executes it in another command prompt
I also tried executing batch file that run daemon process/server at the end of CCNET task; The only way to make CruiseControl spawn an independent asynchronous process WITHOUT waiting for the end of process is:
use task scheduler to run the batch file as CCNET task (using schtasks.exe)
you might need to kill the process at the start of ccnet
PS: the selected answer using "start cmd.exe" does not work; a new command prompt is indeed spawned, but CCNET will wait for the spawned cmd to finish.
Simply type start in command prompt:
This will open up new
cmd
window.here is the Code you Need ;)