
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Function OpenURL(ByVal URL As String) As Long
OpenURL = ShellExecute(0&, vbNullString, URL, vbNullString, vbNullString, vbNormalFocus)
End FunctionOpenURL "C:\Documents and Settings\All Users\Favorites"OpenURL "C:\WINDOWS\Favorites"If Environ("OS") = "Windows_NT" Then
OpenURL "C:\Documents and Settings\" & Environ("USERNAME") & "\Favorites"
Else
OpenURL "C:\WINDOWS\Favorites"
End If
Return to Visual Basic Programming
Users browsing this forum: No registered users and 0 guests