Changing Wallpaper through the registry instantly

  • Thread starter Thread starter MCsonic
  • Start date Start date
M

MCsonic

I would like to know the proper batch file parameters to use in order to
change my desktop/wallpaper background instantly. As of now my batch fill
reads:

reg add hkcu\controlpanel\desktop /v wallpaper /t reg_sz /f /d C:\documents
and settings\<username>\local settings\application
data\microsoft\wallpaper.bmp

reg add hkcu\controlpanel\desktop /v wallpaperstyle /t reg_sz /f /d 0

reg add hkcu\controlpanel\desktop /v tilewallpaper /t reg_sz /f /d 2

::make the changes effective immediately
windows\system32\rundll32.exe user32.dll, updateperusersystemparameters

when i run it, nothing happens. Also the echo in the script tells me that
there are to many parameters in the request.

I feel I'm close but i cant seem to get over the hump.

Thanks
 
thanks John....

would i just add that to the end of my batch script or would i run that
manually form start>run
 
Put it at the end of the script or batch file, it has to run *after* the
changes are made to registry.

John
 
Back
Top