Try this:
' In your command prompt
title foobar
' The title now should say 'foobar' without quotes
' Now issue this...
cmd /k fubar
' The title now should say 'fubar' without quotes
So I guess you need to change it to like this:
<exec>cmd /k title one </exec>
Edit: At the end of the script, invoke the exit
command to exit the nested levels of the cmd.exe
command line processor...Suppose you have three 'exec' for the 'cmd /k', you would need three 'exit' commands in order to get back to the original cmd.exe shell, think of it like popping cmd.exe off the stack for the duration of the nant script...
Edit#2: As per Brett's comment...just a thought - why not do it this way....
<exec>cmd /k title one </exec>
<exec>exit</exec>
Add the 'exit' command immediately after setting the title of the window...?
Hope this helps,
Best regards,
Tom.