Is there an API to add to the a windows command prompt history? I writing a console program and it would be handy to pop some commands into the history buffer under certain (limited) conditions.
A:
There is no API for that. The history is just a buffer of the commands that the user has typed in during that command session. Once the command window has been closed, the history is gone.
Remy Lebeau - TeamB
2009-11-25 01:33:25
It's OK that the history gets killed when the command window is closed. The question remains. Is there a way to put commands in this buffer from a console program?
Mike Ward
2009-11-25 01:43:26
Like I said earlier, there is no API for accessing the console's history.
Remy Lebeau - TeamB
2009-11-25 18:57:56