VB SHELL

来源:百度知道 编辑:UC知道 时间:2024/06/09 08:53:29
这句能打开
Shell "explorer http://hi.baidu.com/%D2%BB%B6%E4wower"
为什么这句会打开C盘,而不是网页?
Shell "explorer http://tieba.baidu.com/f?kw=%C3%DC%C2%EB"
补充,有什么办法可以打开下面那个网页啊?

http://hi.baidu.com/hxf0663/blog/item/6038e6e981dedb38b90e2d75.html

你只需要在你那句里边将explorer改为explorer.exe就可以了.你试试下面的代码:
Shell "explorer.exe http://www.163.com"

Good luck!

使用ShellExecute函数,代码如下

Private Sub Command1_Click()
Dim StrHttp As String

StrHttp = "http://hi.baidu.com/%D2%BB%B6%E4wower"
ShellExecute 1, "", StrHttp, "", "", 5
End Sub

ShellExecute函数的具体应用参见:http://baike.baidu.com/view/1044533.html?wtp=tt

Shell "C:\Program Files\Internet Explorer