嗨我有一个变量名为VAR1的变量我需要在我的regkey中插入变量值,其中140 我该怎么做....
Private Sub OKAY_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKAY.Click
Dim wshshell
wshshell = CreateObject("WScript.Shell")
wshshell.RegWrite("HKLM\SOFTWARE\Microsoft\windows\CurrentVersion\policies\Explorer\NoDrives", 140, "REG_DWORD")
End Sub