|
This article or section includes a list of works cited or a list of external links, but its sources remain unclear because it lacks in-text citations. You can improve this article by introducing more precise citations. DOSKey is a utility for MS-DOS and Microsoft Windows that adds command history, macro functionality, and improved editing features to the command line interpreters COMMAND.COM and cmd.exe. It was included as a TSR program with MS-DOS and PC-DOS versions 5 and later, and with Microsoft's Windows 95/98/Me. Microsofts disk operating system, MS-DOS, was Microsofts implementation of DOS, which was the first popular operating system for the IBM PC, and until recently, was widely used on the PC compatible platform. ...
Microsoft Windows is the name of several families of proprietary software operating systems by Microsoft. ...
Command history is a common feature in command line interface, such as in operating system shells, computer algebra programs and other software that interact with the user through a command line. ...
A macro in computer science is an abstraction, that defines how a certain input pattern is replaced by an output pattern according to a defined set of rules. ...
It has been suggested that this article or section be merged into Command line interface. ...
COMMAND.COM is the name for the default operating system shell (or command line interpreter) for DOS and 16/32bits versions of Windows (95/98/98 SE/Me). ...
This article needs additional references or sources for verification. ...
Terminate and Stay Resident (TSR) is a system call in DOS operating systems that returned control to the system as if the program had quit, but kept the program in memory. ...
IBM PC-DOS was one of the three major operating systems that dominated the personal computer market from about 1985 to 1995. ...
Windows 95 is a consumer-oriented graphical user interface-based operating system. ...
Windows 98 (codenamed Memphis and formerly known as Windows 97) is a graphical operating system released on June 25, 1998 by Microsoft and the successor to Windows 95. ...
Windows Millennium Edition, or Windows Me (IPA pronunciation: [miË], [Ém iË]), is a hybrid 16-bit/32-bit graphical operating system released on September 14, 2000 by Microsoft. ...
In current Windows NT-based operating systems DOSKey's functionality is built into cmd.exe, although the DOSKey command is still used to change its operation. Windows NT is a family of operating systems produced by Microsoft, the first version of which was released in July 1993. ...
This article needs additional references or sources for verification. ...
Usage
DOSKey allows the use of several command switches: In computer software, specifically command line interfaces, a switch (also known as option, command-line parameter, or command-line argument) is an indication by a user that a computer program should change its default behaviour. ...
DOSKEY [/switch ...] [macroname=[text]] | /REINSTALL | Installs a new copy of DOSKey. | | /LISTSIZE=[size] | Sets size of command history buffer to size. | | /MACROS | Displays all DOSKey macros. | | | Displays all DOSKey macros for all executables which have DOSKey macros. | - /MACROS:[executable name]
| Displays all DOSKey macros for the given executable. | | /HISTORY | Displays all commands stored in memory. | | /INSERT | Specifies that new text you type is inserted in old text. | | /OVERSTRIKE | Specifies that new text overwrites old text. | | /EXENAME=exename | Specifies the executable. | | /MACROFILE=filename | Specifies a file of macros to install. | | [macroname] | Specifies a name for a macro you create. | | [text] | Specifies commands you want to record. | During a DOSKey session, the following keyboard shortcuts can be used: A keyboard shortcut (also known as an accelerator key, shortcut key, or hotkey) is one or a set of keyboard keys that, when pressed simultaneously, perform a predefined task. ...
| Up and Down | Recall commands | | Esc | Clears command line | | F7 | Displays command history | | Alt-F7 | Clears command history | | F8 | Searches command history | | F9 | Selects a command by number | | Alt-F10 | Clears macro definitions | DOSKey implements support for command macros, a simple text-substitution facility which is used somewhat like command line aliases in other environments. DOSKey macro definitions can use the following special codes: A computer keyboard. ...
The Alt key on a modern Windows keyboard The Alt key on an IBM PC keyboard is the key located immediately to either side of the Space bar, used to change (alternate) the function of other pressed keys. ...
A macro in computer science is an abstraction, that defines how a certain input pattern is replaced by an output pattern according to a defined set of rules. ...
In Unix shells (like csh, bash, etc. ...
| $T | Command separator. Allows multiple commands in a macro. | | $1-$9 | Batch parameters. Equivalent to %1-%9 in batch programs. | | $* | Symbol replaced by everything following the macro name on command line. | Alternatives The absence of a command history in COMMAND.COM was a serious inconvenience from the earliest versions of MS-DOS. Numerous third-party programs have been written to address the issue; many were available long before Microsoft supplied DOSKey. Some of these also provide additional editing capabilities lacking in DOSKey, such as filename completion. Some of the better-known DOSKey alternatives are Chris Dunford's ced, Sverre Huseby's dosed, Ashok Nadkarni's cmdedit, Steven Calwas's Anarkey, and Eric Tauck's Toddy. Tab completion is a function of many command line interfaces, especially Unix shells, that allows portions of an incomplete filename or commands to be filled in when the Tab key is pressed. ...
See also A partial list of the most common commands for Microsofts MS-DOS operating system follows. ...
Microsofts disk operating system, MS-DOS, was Microsofts implementation of DOS, which was the first popular operating system for the IBM PC, and until recently, was widely used on the PC compatible platform. ...
External links - Doskey.exe on Windows NT
- Doskey.exe on Windows XP
- DOSKey Examples
| view • talk • edit Windows command line programs and builtins (more) | | Basic file and file system management: | attrib | cd | chdir | copy | del | dir | erase | format | md | mkdir | move | rd | rename | ren | rmdir | type | xcopy | | Advanced file and file system management: | assoc | cacls | chkdsk | chkntfs | comp | compact | convert | diskcomp | diskcopy | fc | ftype | label | recover | replace | subst | tree | verify | vol | | User management/environment: | chcp | color | date | graftabl | mode | path | popd | pushd | set | time | title | ver | | Shell programming: | break | call | cmd | doskey | echo | endlocal | exit | for | goto | if | pause | prompt | rem | setlocal | shift | Printing: | print | | Process management: at | start | Text processing: more | sort | | Searching: find findstr | Miscellaneous: cls | help | |