WALLPAPER — Display or change the desktop wallpaper.

Syntax:
WALLPAPER /B /C /N /R /S /T filename

/Bbest style
/Ccenter the wallpaper
/Nno wallpaper
/Rrecursive
/Sstretch the wallpaper
/Ttile the wallpaper
filenamea graphics file to display on the desktop

The filename specifies a graphics file with an extension of .BMP, .JPG, .JPEG, .PNG, .GIF, .TIF, or .TIFF. Alternatively, it may name a directory which contains graphics files of those types, in which case WALLPAPER will pick one at random. Directory aliases are supported in filename.

If there is a bitmap on the clipboard, you can use it as wallpaper by specifying a filename of CLIP:

/B chooses a style automatically, based on the image size and the primary monitor’s resolution. Small images (not more than a quarter of the screen width or a third of the screen height) will be tiled. Larger images (at least 60% of the screen width) with a similar width/height ratio to the screen’s will be stretched to fit. All others will be centered.

/N removes any wallpaper.

If no arguments are specified, the current filename will be displayed.

rem  Tile the background with "Santa Fe Stucco.bmp":
wallpaper /t "c:\windows\santa fe stucco.bmp"

rem  Pick a random image file from the user's Pictures folder:
wallpaper /b /r "%@shfolder[39]"


• Note: Setting the wallpaper under Windows Vista or Windows 7 will disable any slide show.


See also: the _WALLPAPER and _WALLSTYLE variables, which return the current wallpaper filename and display style respectively.