我想要一个.bat文件或类似的东西基本上可以
start/open cmd
input command: cls
hit enter
input command: color f0
hit enter
input command: cls
hit enter
then wait
我是怎么做的 - 但我无法弄清楚如何制作一个文件来完成这件事。有任何想法吗?谢谢。
这更像是一个超级用户问题。你真的应该发布你试过的代码。此命令将启动带有/ K的cmd shell以使其保留。
START "" cmd.exe /K cls ^& color f0 ^& cls
要以管理员身份运行此命令,请创建cmd.exe的快捷方式,并将Target
编辑控件设置为以下字符串。右键单击快捷方式,然后选择“以管理员身份运行”。
C:\Windows\System32\cmd.exe /K cls & color f0 & cls