Your replies were very helpful--thank you! I managed to get the job done
with a 4-line batch file, which I'm going to throw into my Startup folder so
that the era of manually changing my wallpaper settings every morning will
end.
The command
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
was instrumental, 'cause after finding out at
http://commandwindows.com/reg.htm
how to change registry entries by command line (using the /f switch in the
batch file to get past the are-you-sure overwrite prompt), I suspected and
then confirmed I could change what my wallpaper was designated as all day
long but wouldn't see the results unless I did some kind of refresh to effect
the change.
So thanks again, and here's how the batch file goes, for anyone else this
might help:
reg add "hkcu\control panel\desktop" /v wallpaper /t REG_SZ /d "" /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
reg add "hkcu\control panel\desktop" /v wallpaper /t REG_SZ /d "C:\[INSERT
PATH TO IMAGE FILE HERE]\Mars Rover wallpaper 1280x1024.bmp" /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
--Ray
"Raydar" wrote:
> Can anyone point me to a how-to on changing desktop wallpaper via a
> command-line instruction, or ActveX script, etc.?
>
> I'd like to be able to run two such commands or scripts:
> 1. set wallpaper to "none"
> 2. set wallpaper to an image file specified in the script (no need for a
> chooser dialog)
>
> Thanks for any help!
>
> --Ray