Tuesday, November 16, 2010

How to change windows background using batch file to a image on internet?

I want to change the desktop background to image on internet using batch file? How can i do that?How to change windows background using batch file to a image on internet?
I think it would require using cURL.



curl http://nowhere.com/img.jpg %26gt; \windows\somewhere.jpg



then it requires probably tinkering with the registry and possibly killing explorer.exe and restarting explorer.exe.



so you are probably going to have to write a program to do it, an it may be messy if you don't do it right. I haven't looked up the API docs on this yet, but I am sure there is something about this.



IActiveDesktop::SetWallpaperOptions

HRESULT SetWallpaperOptions(

LPCWALLPAPEROPT pwpo,

DWORD dwReserved

);



it's a COM function. welcome to ActiveX.

No comments:

Post a Comment