title (command)
![](http://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Command_Prompt_on_Windows_8.png/300px-Command_Prompt_on_Windows_8.png)
In computing, title
is a command in various command line interpreters (shells) such as the Windows Command Prompt, the Command Processor Shell of Windows Embedded CE[1] and Take Command[2] that changes the title for the graphical terminal emulator window.
The command is also used within DFS and ADFS to change the title of the disc in the current drive.[3]
In case of the Windows Command Prompt it is a shell builtin of the command line interpreter cmd.exe
.[4]
The default window title is defined in the %COMSPEC% environment variable.[5] However, since the Win32 console title can also be defined in the program shortcut, the title is usually set to "Command Prompt".
The command is available in Windows 2000 and later.[6]
Although the OS/2 command shell is closely related to the Windows Command Prompt, the title
command is not available in the OS/2 version of cmd.exe
. The default title of the OS/2 shell window is "OS/2 Window". It can be changed using the start
command.
The ReactOS Command Prompt also includes the title
command to set the window title for the command prompt window.
The command also is not available in the Mac OS X Terminal. Instead, the echo
command can be used in combination with special escape sequences.[7]
Within the GNU GRUB command processor title
is one of several menu-specific commands. It is used to start a new boot entry.[8]
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
- ^ https://msdn.microsoft.com/en-us/library/ee499398(v=winembedded.60).aspx
- ^ http://jpsoft.com/help/title.htm
- ^ Acorn DFS manual
- ^ Microsoft TechNet Title article
- ^ https://www.ss64.com/nt/title.html
- ^ http://www.computerhope.com/titlehlp.htm
- ^ http://alvinalexander.com/blog/post/mac-os-x/change-title-bar-of-mac-os-x-terminal-window
- ^ http://www.linuxselfhelp.com/gnu/grub/html_chapter/grub_12.html#SEC45 Archived 2016-06-05 at the Wayback Machine
Further reading
- Stanek, William R. Microsoft Windows Command-Line Administrator's Pocket Consultant. ISBN 0-735-62038-5.