1.

Solve : Wallpaper?

Answer»

Is it possible to change an xp WALLPAPER via batch file?Code: [Select]SET TargetFile = Targetfilename
REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "%Targetfilename%"
REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 0
REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 2
%SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters
I added a file and all it does is removes the wallpaper
Code: [Select]SET TargetFile = "C:\Documents and Settings\WAUJOR\Desktop\cat.jpg"
REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "%TargetFile%"
REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 0
REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 2
%SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParametersNo version of windows so far SUPPORTS anything but .bmp and .rle file types as the wallpaper.

When you use the DIALOG and select a png,gif, or jpg image, it converts it to a .bmp file and sets the registry values to the converted file. Since you are setting those values directly, there is no magic conversion.thxis it DIFFERENT on vista or 7



Discussion

No Comment Found