简体   繁体   中英

Modify Windows Command Prompt History from a Program?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM