Private Sub Command2_Click() '首先,在工程 引用中 加入对 Windows Script Host Object Model的引用 Dim wshshellobj As New IWshRuntimeLibrary.wshshell Dim hisday As Long hisday = wshshellobj.RegRead("HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Url History\DaysToKeep") MsgBox "历史记录保留天数为:" + CStr(hisday) Dim homeurl As String homeurl = wshshellobj.RegRead("HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Main\Start Page") MsgBox "主页地址为:" + homeurl Set wshshellobj = Nothing End Sub
HKEY_USERS\S-1-5-21-1454471165-839522115-854245398-500\Software\Microsoft\Internet Explorer\Main\下
Start Page这个值
'首先,在工程 引用中 加入对 Windows Script Host Object Model的引用
Dim wshshellobj As New IWshRuntimeLibrary.wshshell
Dim hisday As Long
hisday = wshshellobj.RegRead("HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Url History\DaysToKeep")
MsgBox "历史记录保留天数为:" + CStr(hisday)
Dim homeurl As String
homeurl = wshshellobj.RegRead("HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Main\Start Page")
MsgBox "主页地址为:" + homeurl
Set wshshellobj = Nothing
End Sub
HKEY_CURRENT_USERS\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Url History\DaysToKeep