Skip to content

Instantly share code, notes, and snippets.

@hostage
Created July 21, 2012 09:34
Show Gist options
  • Save hostage/3155253 to your computer and use it in GitHub Desktop.
Save hostage/3155253 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment