VBScript Basics, Part 58 | Write to the registry (Regedit)

preview_player
Показать описание
Visual Basic Script (.vbs) Basic Tutorial:
Learn how to write to the registry and create new keys, or edit existing values. As a bonus also learn how to change your desktop wallpaper.

Example Code:
********************************

Function RunAsAdmin()
Dim objAPP
Set objAPP = CreateObject("Shell.Application")
WScript.ScriptFullName & """" & " RunAsAdministrator",,"runas", 1
WScript.Quit
End If
End Function

********************************

Set objSHL = CreateObject("WScript.Shell")

objSHL.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", chg_wall, "REG_SZ"

Рекомендации по теме
Комментарии
Автор

How can i Change the Accent color With VBS?

aminh
Автор

How change all icons in desktop by .vbs

hackerthn
Автор

DONT DO DAT IF YOU HAVENT TOUCHED THE REGESTRY!!

Hi.GuysBs
Автор

How to get the icon of a exe and use it

gigog