方法一:
Shell "Rundll32.exe url.dll, FileProtocolHandler HTTP://tw.yahoo.com", vbNormalFocus
方法二:
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE " & Text1.Text, vbMaximizedFocusEnd Sub
方法三:
Shell ("explorer HTTP://tw.yahoo.com "), vbNormalFocus
方法四:
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
ShellExecute 0, " ", " HTTP://tw.yahoo.com", " ", " ", 5
沒有留言:
張貼留言