While in the Windows command line, press the F7 to view a history of all the commands entered in that window. Below is a picture of what the Windows command line history box looks like when open.

Pressing the up or down keys lets you browse through all commands and once highlighted, pressing the Enter performs the previous command.

  • View command history and quickly repeat DOS commands.
  • See our history and Windows command line definitions for further information and related links on these terms.