启动时CMD回显?
如何更改启动 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过编辑cmd.exe。 :)(顺便说一句,这是一个笑话,不要真的尝试)如果您在十六进制编辑器中查看 cmd.exe,您将在其中看到该文本。据我所知,没有简单的方法可以改变它。
这是一个丑陋的黑客来模拟你想要的东西。首先创建一个包含以下内容的 .cmd 文件:
(cmd /k 告诉计算机启动 cmd 实例并运行参数而不退出)
然后使用以下内容创建 init.bat 文件:
然后只需运行 .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 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:
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.
你必须对其进行逆向工程:)不记得我到底是怎么做的,而是使用调试器单步执行,直到找到打印它的位置并对其进行编辑。我又“破解”了它一点,它拒绝做任何事情,说“你自己做吧!” :)
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!" :)