title
Creates a title for the Command Prompt window.
Syntax
title [<string>]
Parameters
Parameter | Description |
---|---|
<string> |
Specifies the text to appear as the title of the Command Prompt window. |
/? | Displays help at the command prompt. |
Remarks
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.
Examples
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
Related links
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for