Change the title displayed above the CMD window.
Syntax
TITLE [string]
Key
string The title for the command prompt window, up to 243 characters.
The TITLE command is typically used in a batch file to give the script window a meaningful name.
The default title is %comspec% however, since the title can also be defined in a program shortcut, the title is typically set to "Command Prompt".
The START command, used to start a program in a separate window also has an option to specify a title for the new Window.
If you call a batch script in a new CMD session, then any TITLE set within the batch file will revert when the second CMD session ends.
TITLE Some initial title text CMD /c MyBatchFile.cmd ...
TITLE is an internal command.
"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)
© Copyright SS64.com 1999-2013
Some rights reserved