General Question

XOIIO's avatar

Help editing a batch script?

Asked by XOIIO (18328points) June 28th, 2011

I have this batch script to change a desktop wallpaper, but it doesnt put it as a fullscreen wallpaper

@echo off
call :quiet>nul 2>&1
goto :EOF
:quiet
:: Configure Wallpaper
REG ADD “HKCU\Control Panel\Desktop” /V Wallpaper /T REG_SZ /F /D ”%SystemRoot%\bluescreen.bmp”
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 0
:: Make the changes effective immediately
%SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters

I’ve tried changing tile to stretch but it doesnt work. What do I need to do?

Observing members: 0 Composing members: 0

2 Answers

jaytkay's avatar

It looks like WallpaperStyle is the setting.

Determines how the desktop bitmap is displayed on the desktop if the bitmap is not tiled
0 Center the bitmap on the desktop.
2 Stretch the bitmap vertically and horizontally to fit the desktop.

http://technet.microsoft.com/en-us/library/cc978626.aspx

XOIIO's avatar

@jaytkay great! I have a great prank ready now lol XD

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther