Name

doskey

Synopsis

doskey [options]

Recall previous commands or create macros (aliases).

Command History and Editing Options

/HISTORY

Display the entire command history list.

/LISTSIZE=n

Set the size of the history list to n.

Once doskey is loaded, press F7 to display a selectable command history list, press Alt-F7 to clear it, and press F9 to go to a specific command number.

/INSERT | /OVERSTRIKE

Set the default editing mode for recalled commands to insert or overstrike ( generally the default).

Macro Options

macroname =command

Define a macro. Within command, $T inserts a command separator, $1 through $9 denote command arguments one through nine, and $* denotes all command arguments.

/MACROS:ALL

Display all defined macros.

/MACROFILE=file

Install all macros stored in the specified file.

/EXENAME=exefile

Specify an executable file to associate with the macros being defined.

/MACROS:exefile

Display all defined macros associated with the specified executable file.

The Alt-F10 key sequence clears all defined macros.

Get Windows 2000 Commands Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.