The Full Wiki

More info on Title (command)

Title (command): Wikis

Advertisements

Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.

Encyclopedia

(Redirected to title (command) article)

From Wikipedia, the free encyclopedia

Command Prompt displaying the default title.

In computing, title is a command that changes the title for the Microsoft Windows Command Prompt window. It is a shell builtin of the command line interpreter cmd.exe. The default title is defined in the %COMSPEC% environment variable.[1] However, since the Win32 console title can also be defined in the program shortcut, the title is usually set to "Command Prompt".

Contents

Syntax

title [<String>]

Arguments:

  • <String> Specifies the title of the Command Prompt window.

Example

The following batch file changes the title of the Command Prompt window to "Updating files" while the copy command is being executed. After the command is executed, the text "Files updated" is displayed using the echo command, and the title of the Command Prompt window is changed back to "Command Prompt".

@echo off
title Updating files
copy \\server\share\*.txt c:\documents\*.txt
echo Files updated
title Command Prompt

See also

References

External links

Advertisements

Advertisements






Got something to say? Make a comment.
Your name
Your email address
Message