VB脚本在启动时更改桌面墙纸 [英] VB Script to change desktop wallpaper on startup

查看:78
本文介绍了VB脚本在启动时更改桌面墙纸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些mardy用户否决了我的最后一个,因此我将更改问题。

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

我想创建一个VBScript或您认为可能的任何方法这样做。这样会将桌面背景设置为PC启动时所需的图像。

I want to create a VBScript, or whatever method you deem possible to do so. That sets the desktop background to a desired image on PC startup.

任何人都知道如何做到这一点
运行Powershell脚本更适合于这样做

Anybody shed light on how to do so Would running a powershell script be better suited to do so or?

我主要使用C#和.NET技术工作,所以这有点超出我的领域

I work mainly with C# and .NET technologies, so this is kind of out my area

推荐答案

我不确定这是否是最佳选择。但是,您可以编辑负责背景的注册表项并更新必要的参数。

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.

将以下内容保存到bat文件中,然后将其放入自动启动。 / p>

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

所有积分 Tim

亲切问候
spitterfly

Kind Regards spitterfly

这篇关于VB脚本在启动时更改桌面墙纸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆