Coding of the batch file for wallpaper setting

Asked By 10 points N/A Posted on -
qa-featured

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

SHARE
Answered By 0 points N/A #196553

Coding of the batch file for wallpaper setting

qa-featured

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.

 

 

Related Questions