简体   繁体   English

是否从程序修改Windows命令提示符历史记录?

[英]Modify Windows Command Prompt History from a Program?

Is there an API to add to the a windows command prompt history? 是否有API可以添加到Windows命令提示符历史记录中? 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. 没有API。 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. 关闭命令窗口后,历史记录将消失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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