DOSKEY.exe – Windows CMD Command

Recall and edit commands at the DOS prompt, and create macros. You cannot run a Doskey macro from a batch file.

In addition to the above, DOSKEY is loaded into memory for every cmd session so you can use Keyboard shortcuts at the command line

The size of the command history can be set from Control Panel, Console, or from the properties of any cmd shortcut. Clear all history with DOSKEY /REINSTALL

Comments

Doskey macro files do not support comments, but you can work around this by creating a fake macro called; and repeatedly assigning your comment text, if you do this, always end with the line;= to delete the fake macro.

Save and restore macro definitions

DOSKEY macros are only saved for the current session.
The command:
doskey /macros >macros.cmd
Will list all current macro definitions into macros.cmd, edit this file, and place DOSKEY at the start of each line. Then to restore all the doskey macros setup in the current session at a later date, run macros.cmd

You may also like...

1 Response

  1. frolep rotrem says:

    Very interesting points you have observed, appreciate it for putting up. “Oh, what a tangled web we weave, When first we practice to deceive” by Sir Walter Scott.

Leave a Reply

Your email address will not be published. Required fields are marked *