vb 注册表启动
dim get
Set get = CreateObject("wscript.shell")
get.regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" & App.EXEName, App.Path & "" & App.EXEName & ".exe"
End Sub
Private Sub Command1_Click()
Dim WSH
Set WSH = CreateObject("Wscript.Shell")
MsgBox WSH.regread("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\soft001")
End Sub
Private Sub Command2_Click()
Dim WSH
Set WSH = CreateObject("Wscript.Shell")
WSH.regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\soft001", "检测注册表某个名称下是否有数据" & Now
End Sub