Reputation: 21893
example..Run/cmd desktop.exe http:www.tinypic.com/blabla.jpg -s
Upvotes: 0
Views: 6432
Reputation: 4585
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).
Upvotes: 1