Two files, ImageMagick, and a scheduled task.
Copy the following into files:
'Run random.bat without displaying a window CreateObject("Wscript.Shell").Run "random.bat", 0, True
@echo off set img= set len=0 for /f "delims=" %%a IN ('dir /b /s *.png') do ( set /a len+=1 ) if %len%==0 goto :END set /a idx=%random% %% %len% for /f "skip=%idx% delims=" %%a IN ('dir /b /s *.png') do ( set img=%%a goto :BRK ) :BRK IMconvert "%img%" bmp3:random.bmp RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters :END exit
Note: As you can see above, I renamed
IMconvert because of a well-known naming conflict.
- Place those two files in, I don’t know, maybe
MyDocs/MyPics/Wallpapersor where ever.
- Add all kinds of PNG images to the folder from step one. Sub-folders are welcome.
random.vbsonce to produce
- Set your wallpaper to
- In the Control Panel, you’ll find Scheduled Tasks. Make a new one and set it to
random.vbs. Play around with the options for the task. I have mine set for logon, system idle, and at fixed times throughout the day.
That’s it. Enjoy!