I totally did not know that DOSKEY was part of CMD.EXE, but it is: [WayBack] How do I export the history from the Windows command line to a text file? – Super User
Even better: it can export the command history:
doskey /HISTORY > history.txt
Related:
- Source: WayBack: Microsoft Windows XP – Doskey
/history : Displays all commands stored in memory. You can use a redirection symbol (>) with /history to redirect the list to a file. You can abbreviate /history as /h.
- Source: DOSKEY – Wikipedia
–jeroen