Skip to content

Instantly share code, notes, and snippets.

@hostage
hostage / ChangeWallpaper.cmd
Created July 21, 2012 09:34
Change Windows wallpaper from a shell script
REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "%USERPROFILE%\Wallpaper.bmp"
REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 0
REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0
start /MIN /B %SystemRoot%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters