Dos Prompt Home Page Command Prompt Reference

Edits command lines, recalls Windows commands, and creates macros.

DOSKEY [/REINSTALL] [/LISTSIZE=size] [/MACROS[:ALL | :exename]][/HISTORY] [/INSERT | /OVERSTRIKE] [/EXENAME=exename] [/MACROFILE=filename][macroname=[text]]

/REINSTALL                 Installs a new copy of Doskey.
/LISTSIZE=size              Sets size of command history buffer.
/MACROS                     Displays all Doskey macros.
/MACROS:ALL             Displays all Doskey macros for all executables which have Doskey macros.
/MACROS:exename       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.

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.



Associated Commands



Top of the Page - Command Prompt Reference Home Page
Last Page Update: 08/03/2012

© Sembee Ltd. 1998 - 2016.

Reproduction of any content on this web site is prohibited without express written consent. Use of this web site is subject to our terms and conditions.

All trademarks and registered trademarks are property of their respective owners. This site is not endorsed or recommended by any company or organisation mentioned within and is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given.

Sembee Ltd. is registered in England and Wales at 1 Carnegie Road, Newbury, Berkshire, RG14 5DJ.
Registered company number: 4704428. VAT Number GB 904 5603 43.

Server 2