Title

Creates a title for the command prompt window.

Syntax

title [string]

Parameters

string   : Specifies the title for the command prompt window.

/?   : Displays help at the command prompt.

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.

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

Formatting legend

Format

Meaning

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