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


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...

3 Responses

  1. zoritoler imol says:

    I will immediately take hold of your rss feed as I can not find your email subscription hyperlink or newsletter service. Do you have any? Kindly allow me recognise in order that I could subscribe. Thanks.

  2. zoritoler imol says:

    Admiring the persistence you put into your website and detailed information you offer. It’s awesome to come across a blog every once in a while that isn’t the same unwanted rehashed material. Fantastic read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

  3. 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 *