Not too sure what you are trying to accomplish with this but, anyhoo.....
The correct syntax to set the Wallpaper value for no-wallpaper is ; "none"
so you might type :
reg ADD "HKCU\Control Panel\Desktop" /v Wallpaper /d "none" /f
......then, you can set the desktop base-color, which is only then visible
when there is no wallpaper defined (as above).....
reg ADD "HKCU\Control Panel\Colors" /v Background /d "57 105 165" /f
.....please note - I do *not* specify the REG_TYPE if it's the default
REG_SZ (non-expanded) only for the other reg-types (dword, multi, expand,
binary, & ect.,)
Also, here I gave the background color a value of the default Windows XP
desktop color (sort of a deep sky-blue).
Tip - pick a color using MS PAINT using the "Edit Colors" > "Define Custom
Colors" and then take a note of the Red, Green, Blue fields and then copy
them like above (i.e. Red=57 Green=105 and Blue=165 ) just remember "RGB"
for the relative position of the three numbers that make up the value.
==
Cheers, Tim Meddick, Peckham, London. :-)
"liu" <(E-Mail Removed)> wrote in message
news:f4f35f94-bfde-4b36-b804-(E-Mail Removed)...
>
> Try a Google search for "batch file change background color xp"
>
> and you'll find ideas like this:
>
> http://www.daniweb.com/forums/thread65339.html
>
> http://www.kellys-korner-xp.com/xp_tweaks.htm
> Line 30. Windows XP Doesn't Save User Settings
>
Thanks for the help, Joe.
I've identified (maybe wrong?) the registry items for setting desktop
color and Background picture, but I'm not sure the syntax for
registry.
My questions are:
what do you put if the value data is blank in Wallpaper? I tried 0
What do you put if the value data is RGB values such as 255 255 255
for black.
I tried like the ones below, but it didn't work.
REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D 0
REG ADD "HKCU\Control Panel\Colors" /V Window /T REG_SZ /F /D 255 255
255
Thanks for the help!