문제

It seems like I can't fetch the 1.jpg to be my wallpaper in win 8. The wallpaper become pure black after run this. Why I can't fetch the pic?

@ECHO OFF
reg add "hkcu\control panel\desktop" /v wallpaper /t REG_SZ /d "source\1.jpg" /f >nul
rundll32 user32.dll,UpdatePerUserSystemParameters>nul
PAUSE

The result remain the same after I change the path.

@ECHO OFF
reg add "hkcu\control panel\desktop" /v wallpaper /t REG_SZ /d "%~dp0source\1.jpg" /f >nul
rundll32 user32.dll,UpdatePerUserSystemParameters>nul
PAUSE
도움이 되었습니까?

해결책

Maybe a sintax problem ?

reg add “HKEY_CURRENT_USER\Control Panel\Desktop” /v Wallpaper /t REG_SZ /d  "F:\ull\Path\To\WallpaperFile" /f
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top