Added: Aug 19, 2002
Snippet uploaded by: snippet
Written By: Unknown
Demo: Sorry, no demo
Determine Default Internet Browser Name / Location
Highlight all by clicking in box
Private Declare Function FindExecutable Lib "shell32.dll" Alias _
"FindExecutableA" (ByVal lpFile As String, ByVal lpDirectory As _
String, ByVal lpResult As String) As Long
Private Sub Form_Load()
' Create empty 'htm' file
Dim iFile As Integer
Dim lRet As Long
Dim sBuffer As String
iFile = FreeFile
Open "c:cgtest.htm" For Output As #iFile
Print #iFile, ""
sBuffer = String$(255, vbNullChar)
lRet = FindExecutable("c:cgtest.htm", "c:", sBuffer)
If lRet > 0 Then
sBuffer = Left$(sBuffer, lRet)
MsgBox "Default Browser :" & sBuffer
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.