Desktop Background Slideshow in Windows XP

You might have used the Windows 7’s Desktop Background Slideshow feature. By selecting the images, we can have the slideshow of those images set as desktop background, i.e., we can see the background image changing at regular intervals.
For those of you who are still running the old Windows builds like Windows XP, you don’t get the Slideshow feature. If you’d like to have a dynamic, ever-cycling wallpapers, here’s what you have to do:
Step 1: Create a directory named Autobg in c:\ (Drive C) and add some pictures into it.
Note that the images must be in Bitmap image format (.bmp extension) as the Windows operating system handles bitmap digital images to be set as desktop background.

Step 2: Now, you just have to write a code in any programming language to create a delay in displaying the images. The easiest and familiar one is ‘C’. Compile the following C code in a C-compiler to generate a executable file (.exe) which can be run on Windows platforms. Here’s the code:

void main()
    sleep(5); //The delay of 5 seconds. You can even give the desired value.

Save the code file as sleep.c and compile the code. Now the executable file sleep.exe is generated. Add this file to the directory you created in the Step 1, i.e., into c:\Autobg\

Step 3: Now, open a text editor and type the following Script:

cd c:\Autobg
dir /B /O *.bmp > c:\Autobg\pics.txt
FOR /F "eol=;" %%i in (pics.txt) do (
REG ADD "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "c:\Autobg\%%i" /f NULL
rundll32.exe user32.dll,UpdatePerUserSystemParameters )
goto loop

Save the script file as AutoBGChange.bat
You have to convert the .bat file to .exe file.
Click here to download the converter.
Run Bat_To_Exe_Converter.exefrom the downloaded archive.
In the Browse file field, browse and add the batch file AutoBGChange.bat
In the Save as field, type c:\Autobg\AutoBGChange.exe
Change the Visibility option to Invisible application and press the Compile button to generate the .exe fiile into the c:\Autobg\ directory.

Step 4: Open the text editor again and type the following Script:

REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v AutoBG /t REG_SZ /d "c:\Autobg\AutoBGChange.exe"  /f >NULL

Save the script file as Run.bat
You have to convert the .bat file to .exe file as you did in the previous step and save the .exe file as Run.exe into the c:\Autobg\ directory.

Step 5: Open command prompt and type c:\Autobg\Run.exe

Boom! Its done. Now you can see the desktop background change for every 5 seconds! If you want to add other images to the slideshow, convert the images to .bmp format and add them to c:\Autobg\ directory.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s