What I want is to programatically change Desktop Wallpaper every few hours. I'm using a batch file (.bat) and don't want to use other languages or programs, just the pre-installed stuff with Windows XP. I've already made my script that will modify values in the Registry
reg add "HKCU\Control Panel\Desktop" /v Wallpaper /d "C:\Pictures\picture1.jpg"
The problem is that the script is not taking effect in real time even with this command:
RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True
I need to reboot first for it to take effect.
If I'm going to use Display Properties, it'll show at once. What I've noticed is that changes will take effect real time if it's a .bmp file and not for .jpg images.
Second option is to convert JPG to 24-bit BMP files (to look exactly the same, but will triple the file size), but I'm hoping a better way.
I've already Googled things but no avail. I hope you (the helpful reader) can post any .bat or even .vbs script to change Desktop Wallpaper instantly with JPG pictures. I hope there's an answer without installing other apps or scripts.