Вопрос

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