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 Declare Function GetDesktopWindow Lib "user32" () As LongFunction StartUrl(Url As String) As Long
Dim Scr_hDC As Long
Scr_hDC = GetDesktopWindow()
StartUrl = ShellExecute(Scr_hDC, "Open", Url, "", "C:\", 1)
End Function这个函数很好,其中Scr_hDC一可以用0代替up的shell
url 是 string
shell "start.exe "+Url,vbNormalFocus
Private Declare Function GetDesktopWindow Lib "user32" () As LongFunction StartUrl(Url As String) As Long
Dim Scr_hDC As Long
Scr_hDC = GetDesktopWindow()
StartUrl = ShellExecute(Scr_hDC, "Open", Url, "", "C:\", 1)
End Function这个函数很好,其中Scr_hDC一可以用0代替up的shell
url 是 string
shell "start.exe "+Url,vbNormalFocus
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货