是否有运行或命令提示符命令可以更改 Windows 中的背景图像?

发布于 2024-10-07 03:41:43 字数 58 浏览 0 评论 0原文

例如..运行/cmd桌面.exe http:www.tinypic.com/blabla.jpg -s

example..Run/cmd desktop.exe http:www.tinypic.com/blabla.jpg -s

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

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

发布评论

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

评论(1

暮色兮凉城 2024-10-14 03:41:43

您可以使用命令行实用程序 reg.exe 来执行此操作。您必须修改注册表值:

HKEY_CURRENT_USER\Control Panel\Desktop\WallPaper

或者您可以创建一个包含以下内容的文件(例如 c:\foo.reg):

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"wallPaper" = "path_of_new_wallpaper"

并从 cmd 行将其处理为:

regedit.exe /s c:\foo.reg

设置注册表值在所有 Windows 操作系统上是不够的。您可能必须重新启动计算机才能使更改生效。 (我认为必须有一种解决方法可以使其在不重新启动机器的情况下有效,但我对此一无所知)。

You can use command line utility reg.exe to do that. you have to modify the registry value:

HKEY_CURRENT_USER\Control Panel\Desktop\WallPaper

Or you can create a file (say c:\foo.reg) with following content:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"wallPaper" = "path_of_new_wallpaper"

and process it from cmd line as:

regedit.exe /s c:\foo.reg

Setting the registry value isn't enough on all the flavor of windows os. You might have to reboot the machine for the changes to take effect. (I think there must a workaround to make it effective without rebooting the machine, but I have no idea about it).

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