filmov
tv
VBScript Basics, Part 58 | Write to the registry (Regedit)
Показать описание
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"
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"
VBScript Basics, Part 58 | Write to the registry (Regedit)
VBScript Basics, Part 57 | Read the registry (Regedit)
VBScript Basics, Part 60 | Multidimensional Arrays (Arrays)
VBScript Basics, Part 59 | Delete items in the registry (Regedit)
VBScript Basics, Part 63 | Change and Remove (Dictionary)
.vbs prank loop 02
VBScript Basics, Part 46 | Math Functions
VBScript Basics, Part 62 | Adding and Viewing (Dictionary)
VBScript Basics, Part 55 | Make your computer talk/speak (SAPI)
VBScript Basics, Part 53 | Classes
VBScript Basics, Part 65 | Manipulating Clipboard Text
VBScript Basics, Part 71 | RegExp (Execute)
VBScript Requests » Part 3 | Change User Password
VBScript Basics, Part 50 | Dropped Files - Folders (Arguments)
VBScript Basics, Part 19 | Open File for Reading or Writing (OpenTextFile)
VBscript - Creating a Calculator [Tutorial with Explanation]
VBScript If Then Multiple Actions-VBScript If Then Else Statement-VBScript Tutorial-Vbscript-If Then
VBScript Array-VBscript Arrays Tutorial-Arrays In VBScript-Arrays Script-VBScript Basics-Array-Basic
Environment Variables ( add; change; remove ) | VBScript Examples
Conditionally Rename an AutoCapture file using VBScript (in AutoStore)
VBS tutorial - part 2
VBScript Basics, Part 52 | Run As Administrator
Variables in VBSCRIPT
3 VBScript-FileSystemObject-CreateFolder
Комментарии