DOSKEY explained

DOSKEY
Developer:Microsoft, IBM, Novell, ReactOS contributors
Operating System:MS-DOS, PC DOS, OS/2, eComStation, ArcaOS, Novell DOS 7, DR-DOS, Windows, ReactOS
Platform:Cross-platform
Genre:Command

DOSKEY is a command for DOS, IBM OS/2,[1] Microsoft Windows,[2] and ReactOS[3] that adds command history, macro functionality, and improved editing features to the command-line interpreters [[COMMAND.COM]] and [[cmd.exe]].

History

The command was included as a terminate-and-stay-resident program with MS-DOS and PC DOS versions 5 and later,[4] then Windows 9x,[5] and finally Windows 2000[6] and later.

In early 1989, functionality similar to DOSKEY was introduced with DR-DOS 3.40 with its [[HISTORY (CONFIG.SYS directive)|HISTORY]] CONFIG.SYS directive. This enabled a user-configurable console input history buffer and recall as well as pattern search functionality on the console driver level, that is, fully integrated into the operating system and transparent to running applications. In the summer of 1991, DOSKEY was introduced in MS-DOS/PC DOS 5.0 in order to provide some of the same functionality. DOSKEY also added a macro expansion facility, though special support was required before applications such as command line processors could take advantage of it. Starting with Novell DOS 7 in 1993, the macro capabilities were provided by an external DOSKEY command as well. In order to also emulate the DOSKEY history buffer functionality under DR-DOS, the DR-DOS DOSKEY worked as a front end to the resident history buffer functionality, which remained part of the kernel.

DOSKEY has also been included in IBM OS/2 Version 2.0.[7]

In current Windows NT-based operating systems, the DOSKEY functionality is built into CMD.EXE, although the DOSKEY command is still used to change its operation.

The DOSKEY command is not available in FreeDOS, which has such features built into the command interpreter.[8]

Usage

Command switches

DOSKEY allows the use of several command switches:

DOSKEY [/switch ...] [macroname=[text]]

Installs a new copy of DOSKEY.
[size]
  • Sets size of command history buffer to size.
    Displays all DOSKEY macros.

    Notes and References

    1. Web site: JaTomes Help - OS/2 Commands . 28 July 2019 . https://web.archive.org/web/20190414130029/http://www.jatomes.com/Help/Os2Cmd.php#DOSKEY . 14 April 2019 . dead .
    2. Web site: Doskey Microsoft Docs. 11 September 2009 .
    3. Web site: Reactos/Reactos. GitHub. 2 November 2021.
    4. Book: Wolverton. Van. Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. 2003. Microsoft Press. 0-7356-1812-7.
    5. Book: Tim O'Reilly. Troy Mott. Walter Glenn. 1999. Windows 98 in a Nutshell: A Desktop Quick Reference. O'Reilly. 978-1565924864. registration.
    6. Book: Frisch, Æleen. 2001. Windows 2000 Commands Pocket Reference. O'Reilly. 978-0-596-00148-3.
    7. http://www.tavi.co.uk/os2pages/pdf/gg243731_OS2_V2_0_Vol_2_DOS_and_Windows_Environment.pdf OS/2 2.0 Redbooks Volume 2 - DOS and Windows Environment (GG24-3731)
    8. Web site: FreeDOS command: doskey. dead . https://web.archive.org/web/20111107161606/http://help.fdos.org/en/hhstndrd/command/doskey.htm . 7 November 2011 .