VBScript to change desktop wallpaper on startup

后端 未结 2 1572
后悔当初
后悔当初 2020-12-20 07:15

Due to some mardy users voting down my last one, I\'ll change the question.

I want to create a VBScript, or whatever method you deem possible to do so. That sets the

2条回答
  •  庸人自扰
    2020-12-20 07:29

    I'm not sure if it is the best option. But you could edit the registry entry that is responsible for your background and update the necessary parameter.

    Save the following in a bat file and put it into auto-start.

    @echo off
    reg add "HKCU\control panel\desktop" /v wallpaper /t REG_SZ /d "" /f 
    reg add "HKCU\control panel\desktop" /v wallpaper /t REG_SZ /d "C:\[LOCATION OF WALLPAPER HERE]" /f 
    reg delete "HKCU\Software\Microsoft\Internet Explorer\Desktop\General" /v WallpaperStyle /f
    reg add "HKCU\control panel\desktop" /v WallpaperStyle /t REG_SZ /d 2 /f
    RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters 
    exit
    

    All Credits to Tim

    Kind Regards spitterfly

提交回复
热议问题