Title (command) explained

title
Developer:Microsoft, JP Software, ReactOS Contributors
Operating System:Windows, ReactOS
Platform:Cross-platform
Genre:Command
License:Windows, TCC: Proprietary commercial software
ReactOS: GPL v2

In computing, title is a command in various command-line interpreters (shells) on Microsoft Windows and ReactOS[1] 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.[2]

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 %COMSPEC% environment variable.[5] 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[6] and in the Take Command Console.[7]

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)|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)|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:

Example

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

@echo offtitle Updating filescopy \\server\share\*.txt c:\documents\*.txtecho Files updatedtitle Command Prompt

See also

Further reading

External links

Notes and References

  1. Web site: reactos/reactos. GitHub.
  2. Web site: BBC Computer Related Manuals. www.8bs.com.
  3. Web site: Microsoft TechNet Title article.
  4. Web site: MS-DOS and Windows command line title command. www.computerhope.com.
  5. Web site: Title - Windows CMD - SS64.com. ss64.com.
  6. Web site: Archiveddocs . TITLE (Command Processor) (Windows Embedded CE 6.0) . Microsoft Docs . 2018-03-23 . 2020-09-20.
  7. Web site: TITLE command - Change the window title. jpsoft.com.
  8. Web site: How to change the Mac Terminal title from the command line | alvinalexander.com. alvinalexander.com.
  9. http://www.linuxselfhelp.com/gnu/grub/html_chapter/grub_12.html#SEC45