展开全部
Shell "cmd.exe /c start " & url, 0
VBS
~~~~~~~~~~~~~
Set Wshell=WScript.CreateObject("WScript.Shell")
Set ie=WScript.CreateObject("InternetExplorer.Application")
ie.visible=True
ie.navigate "http://www.baidu.com/"
=================
VBS
~~~~~~~~~~~~~
Set Wshell=WScript.CreateObject("WScript.Shell")
Set ie=WScript.CreateObject("InternetExplorer.Application")
ie.visible=True
ie.navigate "http://www.baidu.com/"
=================
展开全部
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 Sub Command1_Click()
ShellExecute Me.hwnd, "open", "www.baidu.com", "", "", 5
End Sub
亲自测试可以用
Private Sub Command1_Click()
ShellExecute Me.hwnd, "open", "www.baidu.com", "", "", 5
End Sub
亲自测试可以用
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
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
'调用ShellExecuteA函数
Private Sub OpenUrl(tUrl As String) '定义打开网址tUrl的动作
ShellExecute Me.hwnd, "Open", tUrl, 0, 0, 0
End Sub
Private Sub Command1_Click()
OpenUrl www.baidu.com
End Sub
'调用ShellExecuteA函数
Private Sub OpenUrl(tUrl As String) '定义打开网址tUrl的动作
ShellExecute Me.hwnd, "Open", tUrl, 0, 0, 0
End Sub
Private Sub Command1_Click()
OpenUrl www.baidu.com
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE" & Space(1) & "www.baidu.com",vbNormalFocus
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询