Not a Member Yet,
Click here to Register
How do you like the new design?

ID: 363
Viewed: 2150
Added: Aug 19, 2002
Snippet uploaded by: snippet
Written By: Unknown
Demo: Sorry, no demo

User Rated at: 0 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty

Determine Default Internet Browser Name / Location

Highlight all by clicking in box
Option Explicit
Private Declare Function FindExecutable Lib "shell32.dll" Alias _
"FindExecutableA" (ByVal lpFile As String, ByVal lpDirectory As _
String, ByVal lpResult As String) As Long

Highlight All
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, ""
Close #iFile

sBuffer = String$(255, vbNullChar)

lRet = FindExecutable("c:cgtest.htm", "c:", sBuffer)

If lRet > 0 Then
sBuffer = Left$(sBuffer, lRet)
MsgBox "Default Browser :" & sBuffer
End If
End Sub;

No Comments to show

Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.

Replying to a Comment...

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.

© 2002 - 2018 All Rights Reserved. Conditions