Creates a title for the Command Prompt window.


title [<string>]


Parameter Description
<string> Specifies the text to appear as the title of the Command Prompt window.
/? Displays help at the command prompt.


  • To create window title for batch programs, include the title command at the beginning of a batch program.

  • After a window title is set, you can reset it only by using the title command.


To change the Command Prompt window title to Updating Files while the batch file executes the copy command, and then to return the title back to Command Prompt, type the following script:

@echo off
title Updating Files
copy \\server\share\*.xls c:\users\common\*.xls
echo Files Updated.
title Command Prompt