25. January 2011 23:30
If you use CMD.exe, then just hit F7. It will give you all previous commands as shown in the screenshot below.
Oh btw, because I almost forgot. There is a easy command prompt to create a new file.
copy con filename.txt
Hit return, just type your text and and with CTRL + Z (and return). You will now have a file with the content you wanted. Thanks to Scott Hanselman for reminding me!