Check Registry Settings
Paste the following text into a .vbs file and edit as required.
The code allows you to check registry settings
On Error Resume Next sResults = "" Set oWShell = CreateObject("Wscript.Shell") Call GetAppVersion("Internet Explorer", "HKLM\SOFTWARE\Microsoft\Internet Explorer\Version") Call GetAppVersion("Java", "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83216016FF}\DisplayVersion") msgbox sResults Set oWShell = Nothing Sub GetAppVersion(sApplication, sRegPath) On Error Resume Next sTemp = oWShell.RegRead(sRegPath) If Err.Number <> 0 Then sResults = sResults & "Version not found for " & sApplication & "." & vblf Err.Clear Else sResults = sResults & sApplication & " Version: " & sTemp & vblf End If End Sub
No comments yet.