如何用VB编写程序 使之可以打开IE收藏夹中的网页快捷方式

来源:百度知道 编辑:UC知道 时间:2024/05/20 06:05:24
紧急:如何用VB编写程序 使之可以打开IE收藏夹中的网页快捷方式
不要那种shell iexplore.exe地址 网址,这种我知道。
Shell "Rundll32.exe url.dll, FileProtocolHandler xx.lnk"好像对此无效

Option Explicit
Private 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
Private Const SW_SHOW = 5
Private Const SW_SHOWMAXIMIZED = 3

Private Sub Command1_Click()
Dim i As Long
File1.Path = "C:\Documents and Settings\CLACK.BAO\Favorites"
For i = 1 To File1.ListCount
List1.AddItem File1.List(i - 1)
Next
End Sub

Private Sub List1_DblClick()
Shell "rundll32.exe shdocvw.dll,OpenURL " & File1.Path & "\" & List1.List(0), vbNormalFocus
End Sub