This question already has an answer here:
- how do you see the entire command history in interactive python? 9 answers
On Windows 10, Python 3.6
Let's say I have a command prompt session open (not Python command prompt or Python interactive session) and I've been setting up an environment with a lot of configurations or something of that nature. Is there any way for me to access the history of commands I used in that session with a python module for example?
Ideally, I would like to be able to export this history to a file so I can reuse it in the future.
Example:
Type in command prompt: python savecmd.py
and it saves the history from that session.