If you’re using Windows Command Line (Windows+R -> “cmd” -> Enter) you can cycle through your previously used commands for your current “session”.
Just press F8 and a box will pop up like this one: (click to enlarge)
Then press the number of the command.
[tags]daily-shortcut, productivity, accesskeys, shell, cmd[/tags]