MS-DOS External Commands
The DOSKEY Command
Description:
Edits command lines, recalls MS-DOS commands, and creates macros.
Command Syntax:
DOSKEY [/REINSTALL] [/BUFSIZE=size] [/MACROS] [/HISTORY]
[/INSERT | /OVERSTRIKE] [macroname=[text]]
Explanation of Syntax:
[/REINSTALL] installs a new copy of Doskey.
[/BUFSIZE=size] sets size of command history buffer.
[/MACROS] displays all Doskey macros.
[/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.
[macroname] specifies a name for a macro you create.
[text] specifies commands you want to record.
UP and DOWN ARROWS 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.
The following are some special codes in Doskey macro definitions:
$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 macro name on command line.
Command Use:
This command can be used at the command prompt and in batch files.