开发者

Is there a Run or command-prompt command that changes the background image in windows?

开发者 https://www.devze.com 2023-01-30 02:28 出处:网络
ex开发者_开发知识库ample..Run/cmd desktop.exe http:www.tinypic.com/blabla.jpg -sYou can use command line utility reg.exe to do that. you have to modify the registry value:

ex开发者_开发知识库ample..Run/cmd desktop.exe http:www.tinypic.com/blabla.jpg -s


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消