Once wallpaper is registered, how can i refresh the desktop with a batch file

Joined
Feb 19, 2025
Messages
2
Reaction score
0
after "C:\PICTURE.bmp" is registered
SET "WallReg=HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System"
reg add "%WallReg%" /v Wallpaper /t REG_SZ /d "C:\PICTURE.bmp" /f
how would i load a wallpaper?
is there a way to refresh the wallpaper

my trials were
F5 didnt work well
rundll32.exe user32.dll,UpdatePerUserSystemParameters didnt work well
log-off didnt work well
soft reboot didnt work well
power off total reboot worked so far, but is not what i want

TASKKILL /F /IM Explorer.EXE
START "" /D "%SystemRoot%" /I /NORMAL Explorer.EXE
killing explorer always worked... but i can not go with it during startup, too harsh on resetting from desktop or reloading explorer twice during startup
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top