title (command)
GPL v2 |
In
Overview
In case of Microsoft Windows it is a shell builtin of the command-line interpreter cmd.exe
.[3] The command is available in Windows 2000 and later.[4]
It is compatible with Windows Console and Windows Terminal.
The default window title is defined in the
The command is also available in the Command Processor Shell of
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
The command also is not available in the macOS Terminal. Instead, the echo
command can be used in combination with special escape sequences.[8]
Within the GNU GRUB command processor title
is one of several menu-specific commands. It is used to start a new boot entry.[9]
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
- ^ "reactos/reactos". GitHub.
- ^ "BBC Computer Related Manuals". www.8bs.com.
- ^ "Microsoft TechNet Title article".
- ^ "MS-DOS and Windows command line title command". www.computerhope.com.
- ^ "Title - Windows CMD - SS64.com". ss64.com.
- ^ Archiveddocs (2018-03-23). "TITLE (Command Processor) (Windows Embedded CE 6.0)". Microsoft Docs. Retrieved 2020-09-20.
- ^ "TITLE command - Change the window title". jpsoft.com.
- ^ "How to change the Mac Terminal title from the command line | alvinalexander.com". alvinalexander.com.
- ^ [1] 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.
- John Paul Mueller (2007). Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000. ISBN 978-0470165799.