VBScript to change desktop wallpaper on startup

后端 未结 2 1505
后悔当初
后悔当初 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

    0 讨论(0)
  • 2020-12-20 07:40

    If you wanted to do it through Powershell you could follow the instructions Here

    The meat of it is you can preform this task by a simple command

    Set-Wallpaper [Source] [Selection]
    

    Now this can be achieved by pre-loading the Set-Walpaper.ps1 that was written by "TheAgreeableCow" and the code can be found on GITHUB

    0 讨论(0)
提交回复
热议问题