Sunday, May 3, 2009

Windows Command Line History - Doskey

Issue: You have typed a lot of command at the command / dos prompt and want to run one of them again without retyping it.

F7 - history list
Alt+F7 - Clear History
[characters]F8 - searches for command beginning with the characters you typed


Doskey is the program in Windows that maintains history of dos commands. You can scroll through the list with the up and down arrow key, but you can also get a list of commands by pressing the F7 key.

You can clear the history with ALT-F7 or search for a command that starts with dir by typing dir followed by the F8 key.

Here is a link that has some good information about DosKey.

No comments: