Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
Description
CMD, bat - file - the code does not work: RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
Files for the test: UpdatePerUserSystemParameters.zip![]()
Code for applying desktop background:
@echo off |
cd /d "%~dp0" |
if not exist "%AllUsersProfile%\Desktop\PICT-R.bmp*" copy /Y "PICT-R.bmp" "%WINDIR%\Web\Wallpaper\PICT-R.bmp" >nul |
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "%WINDIR%\Web\Wallpaper\PICT-R.bmp" /f >nul |
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v WallpaperStyle /t REG_SZ /d 2 /f >nul |
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v TileWallpaper /t REG_SZ /d 0 /f >nul |
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
|
After applying the code, the desktop background does not appear, you need to reboot the system.
The following code does not work in the code:
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters