CMD: Display Command Line/DOS History in XP/2000/NT

Contributor Icon Contributed by AlexTheBeast Date Icon December 9, 2003  
Tag Icon Tagged: Windows

Quick recipe that will save you loads of time while working from the command prompt.


Here’s a recipe I use almost everyday. Command prompt/DOS junkies can’t do without it.

Anytime you have a DOS window open, windows remembers your commands you have used in that open window.

Pressing F7 will display any previous commands used during that session. You can then just highlight the command and press ENTER to redo that command.

The up and down arrows will also display previous commands as well; however, the F7 trick displays them all at once for quick pickings.

Previous recipe | Next recipe |
 
  • alex
    Yeah, that is useful... gee...the post is old, but anyway...
    After 6 years, it still lacks a decent history command.
    That little windows that the command F7 brings it too puny... the real useness of
    the history is to be able to repeat long commands... and that little window is not
    resizable and will cut any command a little bit longer...
    Nevertheless... (sigh) better than nothing....
    Rember also that F3 retypes the last command (right, not very useful since the
    up arrow is much more handy)...
    -Alex
blog comments powered by Disqus