Title

Creates a title for the command prompt window.

Syntax

title [string]

Top of pageTop of page

Parameters

string : Specifies the title for the command prompt window.

/? : Displays help at the command prompt.

Top of pageTop of page

Remarks

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

Once set, the window title can be reset with the title command only.

Top of pageTop of page

Examples

To set the window title for a batch program, type:

rem This batch program updates the employee data:
cls
@echo off
title Updating Files
copy \\server\share\*.xls c:\users\common\*.xls
echo Files Updated.
title Command Prompt
Top of pageTop of page

Formatting legend

FormatMeaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Command-line reference A-Z


Top of pageTop of page