Quincy Center for Technical Education
Computer Technology Department

Doskey

Calls the Doskey program, which recalls Windows 2000 commands, edits command lines, and creates macros.

doskey [/reinstall] [/listsize=size] [/macros:[all | exename]] [/history] [/insert|/overstrike] [/exename=exename] [/macrofile=filename] [macroname=[text]]

Parameters

/reinstall

Installs a new copy of Doskey. Clears the command history buffer.

/listsize=size

Specifies the maximum number of commands in the history buffer.

/macros

Displays a list of all Doskey macros. You can use a redirection symbol (>) with the /macros switch to redirect the list to a file. You can abbreviate the /macros switch as /m.

all

Displays Doskey macros for all executables.

exename

Displays Doskey macros for the specified executable.

/history

Displays all commands stored in memory. You can use a redirection symbol (>) with the /history switch to redirect the list to a file. You can abbreviate the /history switch as /h.

/insert | /overstrike

Specifies whether new text you type is to replace old text. If you use the /insert switch, new text that you type on a line is inserted into old text (as if you had pressed the INSERT key). If you use the /overstrike switch, new text replaces old text. The default setting is /overstrike.

/exename=exename

Specifies the program (executable) in which the Doskey macro will run.

/macrofile=filename

Specifies a file containing macros to install.

macroname=[text]

Creates a macro that carries out the commands specified by text. Macroname specifies the name you want to assign to the macro. Text specifies the commands you want to record. If text is left blank, macroname is cleared of any assigned commands.