Saving windows command prompt history to a file – Charlie Arehart’s ColdFusion Troubleshooting Blog
Posted by jpluimers on 2018/11/14
Dumping the command prompt history
From [WayBack] Saving windows command prompt history to a file – Charlie Arehart’s ColdFusion Troubleshooting Blog:
doskey /history
gives you the command history.
Redirecting with >, >> or piping with | allows you to save this to a file or filter the output.
Found via: [WayBack] How I can export the history of my commands in Windows(7) Command Prompt? – Stack Overflow
Shells that do support persistent history
Note that the command history is not persistent. If you want that, then there are two other shells that support persistent history:
- PowerShell (via a script)
- clink (out of the box)
- Install via [WayBack] Chocolatey – The package manager for Windows:
choco install clink
- Install via [WayBack] Chocolatey – The package manager for Windows:
Both of these found through [WayBack] windows – Is there a global, persistent CMD history? – Server Fault.
–jeroen






Leave a comment