启动时CMD回显?

发布于 2024-10-26 20:42:50 字数 153 浏览 1 评论 0原文

如何更改启动 CMD 时自动出现的消息?其中写着:“


Microsoft Windows [版本 6.0.6000]

版权所有 (c) 2006 Microsoft Corporation。


我如何更改该自动消息?..

How do I change the message that comes up automaticly when I start up CMD? The one where it says:"


Microsoft Windows [Version 6.0.6000]

Copyright (c) 2006 Microsoft Corporation.


How do I change that automatic message?..

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

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

发布评论

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

评论(2

画中仙 2024-11-02 20:42:50

通过编辑cmd.exe。 :)(顺便说一句,这是一个笑话,不要真的尝试)如果您在十六进制编辑器中查看 cmd.exe,您将在其中看到该文本。据我所知,没有简单的方法可以改变它。

这是一个丑陋的黑客来模拟你想要的东西。首先创建一个包含以下内容的 .cmd 文件:

cmd /k init.bat

(cmd /k 告诉计算机启动 cmd 实例并运行参数而不退出)

然后使用以下内容创建 init.bat 文件:

@echo off
cls
echo My message goes here

然后只需运行 .cmd文件而不是 cmd.exe,您将看到一个命令窗口,顶部只有您的文本。

如果我知道您为什么要这样做,那么也许我的答案可以更具体地满足您的需求。

By editing the cmd.exe. :) (That was a joke btw, don't really try that) If you look at a the cmd.exe in a hex editor, you will see that text in it. There is no easy way that I know of to change it.

Here is an ugly hack to emulate what you are wanting. First create a .cmd file that contains the following:

cmd /k init.bat

(cmd /k tells the computer to start an instance of cmd and run the parameter and not exit)

Then created your init.bat file with the following:

@echo off
cls
echo My message goes here

Then you just run your .cmd file instead of cmd.exe and you will get a command window with just your text at the top.

If I knew why you were wanting to do this, then maybe my answer could have been more specific to your needs.

够运 2024-11-02 20:42:50

你必须对其进行逆向工程:)不记得我到底是怎么做的,而是使用调试器单步执行,直到找到打印它的位置并对其进行编辑。我又“破解”了它一点,它拒绝做任何事情,说“你自己做吧!” :)

我被黑的 cmd.exe

You have to reverse engineer it :) Don't remember exactly how I did, but using a debugger single step until you find the place where it prints that out and edit it. I "hacked" it a bit more and it refuses doing anything, saying "do it yourself!" :)

my hacked cmd.exe

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