重命名 MS-DOS 内部命令

发布于 2024-12-07 03:05:58 字数 322 浏览 1 评论 0原文

是否可以通过任何方式重命名 DOS 的内部命令?首先,我这样做是为了了解一些 DOS 的内部结构和可能性。到目前为止,我已将内部命令 CLS 更改为 XLX(在 Windows XP 上)。但命令名称 XLX 未执行。我附上2张截图供参考。最重要的是,这整个活动只是我的好奇心。

调试了 command.com 文件并将 CLS 更改为 XLX 调试了 command.com 文件并将 CLS 更改为 XLX

Is it possible by any means to rename the internal commands of DOS? Firstly, I am doing this to learn a bit about the internals and possibilities of DOS. So far I have changed the internal command CLS to XLX (on Windows XP). But the command name XLX isn't executing. I am attaching 2 screenshots for the reference. Above everything else, this whole activity is just my curiosity.

debugged the command.com file and changed the CLS to XLX
debugged the command.com file and changed the CLS to XLX

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

橘亓 2024-12-14 03:05:58

您运行的 shell 不是 DOS,也不是 command.com;正如窗口标题所示,它是 cmd.exe,这是一个完全不同的程序。如果您运行 DOS 命令解释器,您的更改可能实际上会起作用 - 这可能会或可能不会像从 cmd shell 运行命令那么简单。

That shell you're running isn't DOS and it isn't command.com; as the window title indicates, it's cmd.exe which is a different program entirely. Your changes might actually work if you were running the DOS command interpreter — which might or might not be as easy as just running command from the cmd shell.

她说她爱他 2024-12-14 03:05:58

看来您只更改了包含有关 CLS 命令的文档的字符串。我怀疑某处还有另一个“CLS”字符串。

很难确定,因为 command.com 是闭源软件。您可以做的一件事是使用 debug 或其他调试器(ollydebug 是一个免费的 GUI 调试器)来跟踪运行 CLS 时发生的情况,并找到 command.exe 决定执行 cls 命令的条件跳转。

It looks like you have only changed the string containing documentation about the CLS command. I would suspect that there is another "CLS" string somewhere.

It is difficult to know for sure because command.com is closed source software. One thing you could do is use debug or another debugger (ollydebug is a free GUI debugger) to trace out what happens when you run CLS and find the conditional jump where command.exe decides to perform the cls command.

緦唸λ蓇 2024-12-14 03:05:58

COMMAND 将尝试运行 CMD 的内部命令,至少在 Vista 上是这样。
要查看差异,请尝试启动 COMMAND,然后启动命令 VER。 COMMAND /C VER 会给出不同的结果,所以如果你做得正确,你应该尝试“COMMAND /C XLX”。我不知道这是否有效。

COMMAND will try to run CMD's internal commands, at least on Vista.
To see the difference try starting COMMAND, and then the command VER. COMMAND /C VER will give a different result, so if you did it right you should try "COMMAND /C XLX". I have no idea if that will work or not.

2024-12-14 03:05:58

更改内部命令 mgiht 会对您的注册表内容造成危险。因此,根据我的经验,我建议您在备份数据后或在虚拟机上进行实验是最可取的。

changing the internal command mgiht cause danger to yoiur registry content.. so i suggest you to oerform your experiment after having a backup of your data or on a virtual machine is most preferable as per my experience..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文