Change the title displayed above the CMD window.
Syntax
TITLE [string]
Key
string : The title for the command prompt window.
The default title is %comspec% however, since the title can also be defined in a program shortcut, the title is usually set to "Command Prompt"
To change the title for the duration of a command use:
TITLE This is the initial title text CMD /c MyBatchFile.cmd ...
If MyBatchFile.cmd contains a different TITLE command it will revert when the second command session ends.
The START command, used to start a program in a separate window also has an option to specify a title for the new Window.
"The longer the title, the less important the job." - George
McGovern.
Related:
MODE - change the size of the CMD window
COLOR - change the colour of the CMD window
PROMPT - change the CMD window prompt
START - start a program in a separate window
QuickEdit mode - also changes the title (temporarily)
Powershell: Set the console title to current working dir (save in Profile.ps1 to make permanent)