TITLE – Windows CMD Command


Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Change the title displayed above the CMD window.

The TITLE command is typically used in a batch file to give the script window a meaningful name.

The default title for the CMD shell is %comspec% however, since the title can be re-defined in a program shortcut, the title is typically set to “Command Prompt”.

In a batch file, you can set the title to match the name of the batch file with:
TITLE %~nx0

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 is an internal command.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *