Windows 是否记录提供给 cmd.exe 的命令? [英] Does Windows log the commands given to cmd.exe?

查看:43
本文介绍了Windows 是否记录提供给 cmd.exe 的命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以检索我在命令窗口中给出的命令直到某个点.cmd.exe 似乎有一定的缓存大小,一旦用完,命令就会溢出.当我关闭命令窗口时,所有内容都会被删除,对吗?还是错了?Windows 是否仍然知道我给出了哪些命令,我​​可以检索它们吗?

I know that I can retrieve the commands I've given in a command window up to a certain point. cmd.exe seems to have a certain cache size and once it's exhausted the commands overflow. When I close the command window everything is deleted, right? Or wrong? Does Windows still know which commands I gave and can I retrieve them?

如果我在命令窗口中运行一个程序并且该程序调用 cmd.exe 来运行一个命令,我能以某种方式看到这个命令吗?

If I run a program in a command window and the program calls cmd.exe to run a command, can I see this command somehow?

推荐答案

键入 doskey/?.

所以doskey/history.

它不是日志,而是命令调用器.

It is not a log but a command recaller.

echo %cmdcmdline% 显示 Cmd 的命令行.否则您可以在任务管理器中阅读命令行.右键单击详细信息"选项卡中的标题.选择命令行.

echo %cmdcmdline% shows Cmd's command line. Else you can read the command line in task manager. Right click the headings in Detail tab. Choose Command Line.

这列出了所有变量 https://winsourcecode.blogspot.com/2019/05/listenvironmentexe-list-system-user.html

这篇关于Windows 是否记录提供给 cmd.exe 的命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆