Title (command)
{{Short description|Command of command line interpreters}}
{{lowercase}}
{{Infobox software
| name = title
| logo =
| screenshot = Command Prompt on Windows 8.png
| screenshot size =
| caption = Windows Command Prompt displaying the default title
| developer = Microsoft, JP Software, ReactOS Contributors
| released =
| latest release version =
| latest release date =
| operating system = Windows, ReactOS
| platform = Cross-platform
| genre = Command
| license = Windows, TCC: Proprietary commercial software
ReactOS: GPL v2
| website =
}}
In computing, title
is a command in various command-line interpreters (shells) on Microsoft Windows and ReactOS{{Cite web|url=https://github.com/reactos/reactos|title=reactos/reactos|website=GitHub}} 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.{{Cite web|url=http://www.8bs.com/othrdnld/manuals/manuals.htm|title=BBC Computer Related Manuals|website=www.8bs.com}}
Overview
File:ReactOS-0.4.13 title command 667x434.png console window after the title was changed to "Wikipedia" using the title
command]]
In case of Microsoft Windows it is a shell builtin of the command-line interpreter cmd.exe
.{{Cite web|url=https://technet.microsoft.com/en-us/library/bb491017.aspx|title=Microsoft TechNet Title article}} The command is available in Windows 2000 and later.{{Cite web|url=https://www.computerhope.com/titlehlp.htm|title=MS-DOS and Windows command line title command|website=www.computerhope.com}}
It is compatible with Windows Console and Windows Terminal.
The default window title is defined in the %COMSPEC% environment variable.{{Cite web|url=https://ss64.com/nt/title.html|title=Title - Windows CMD - SS64.com|website=ss64.com}} However, since the Windows Console title can also be defined in the program shortcut, the title is usually set to "Command Prompt".
The command is also available in the Command Processor Shell of Windows Embedded CE{{cite web | author=Archiveddocs | title=TITLE (Command Processor) (Windows Embedded CE 6.0) | website=Microsoft Docs | date=2018-03-23 | url=https://docs.microsoft.com/en-us/previous-versions/windows/embedded/ee499398(v=winembedded.60) | access-date=2020-09-20}} and in the Take Command Console.{{Cite web|url=https://jpsoft.com/help/title.htm|title=TITLE command - Change the window title|website=jpsoft.com}}
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 macOS Terminal. Instead, the echo
command can be used in combination with special escape sequences.{{Cite web|url=http://alvinalexander.com/blog/post/mac-os-x/change-title-bar-of-mac-os-x-terminal-window/|title=How to change the Mac Terminal title from the command line | alvinalexander.com|website=alvinalexander.com}}
Within the GNU GRUB command processor title
is one of several menu-specific commands. It is used to start a new boot entry.[http://www.linuxselfhelp.com/gnu/grub/html_chapter/grub_12.html#SEC45] {{Webarchive|url=https://web.archive.org/web/20160605154043/http://www.linuxselfhelp.com/gnu/grub/html_chapter/grub_12.html#SEC45 |date=2016-06-05 }}
Syntax
title [
Arguments:
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
{{Reflist}}
Further reading
- {{Cite book|title=Microsoft Windows Command-Line Administrator's Pocket Consultant|first=William R.|last=Stanek|isbn=0-735-62038-5}}
- {{Cite book|author=John Paul Mueller|year=2007|title=Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000|publisher=John Wiley & Sons|isbn=978-0470165799}}
External links
{{Wikibooks|Guide to Windows Commands}}
- [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/title title | Microsoft Docs]
{{Windows commands}}