Save Windows Command Prompt History on Exit
The solution to saving the Windows Command Prompt history using the DOSKEY utility is already well known, but this post will show how it can be done automatically every time you exit cmd.exe.