tags:

views:

376

answers:

6

How can I change the title of the command prompt window every time I execute a dos-based program by double clicking it, in c language. Should I use the Windows API?

A: 

Do you mean your trying to change the command prompt window title?

John
A: 

Yes, I want to change the window title.

sasayins
pls use the comments instead of adding new answers.
Colin
+3  A: 

Try SetConsoleTitle.

James D
A: 

thanks alot!

sasayins
A: 

you can do

%comspec% /c start "testtest" %comspec%

at application launcher of Windows+R

crowdy
A: 

'title' is a command already.

title '"indows Title"