Asked By
David Shawn
10 points
N/A
Posted on - 01/28/2013
Hello Friends,
Please send me the coding of the batch file for wallpaper setting.
It should work in such a way that, double clicking the batch file will automatically change the wallpaper with the image that is mentioned in the batch file.
Thanks
Coding of the batch file for wallpaper setting
Hi David,
Here is the script to change the desktop background in Windows.
@echo off
reg add "HKCUControl PanelDesktop" /v Wallpaper /t REG_SZ /d "C:imagesimage.bmp" /f
%SystemRoot%System32RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters
Â
The part in bold is the image path, put the quotation marks if the path contains spaces.
The third line is to refresh the preferences and  make  visible the image in the desktop.
Â
Hope it helps.
Â
Kay Sheri.
Â
Â