程序中的程序
我想在我的程序中打开.html文件,怎样才能调用explorer呢?最好说的详细点,谢谢!! 问题点数:10、回复次数:6Top
1 楼wbdx(碳离子)回复于 2001-07-20 14:15:15 得分 0
shell "explorer.exe 路径 & *.html"Top
2 楼Ninputer(装配脑袋)回复于 2001-07-20 14:17:33 得分 0
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
用这个好Top
3 楼lianghn(宁河)回复于 2001-07-20 14:30:44 得分 0
同意楼上。Top
4 楼xxlroad(土八路)回复于 2001-07-20 16:02:22 得分 0
Private Sub Command1_Click()
Dim AddHttp As String
AddHttp = "D:\text.html"
nResult = Shell("start.exe " & AddHttp, vbHide)
End Sub Top
5 楼xxlroad(土八路)回复于 2001-07-20 16:03:30 得分 10
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 Label1_Click()
ShellExecute Me.hwnd, "Open", "D:\text.html", "", App.Path, 1
End Sub
Top
6 楼Ninputer(装配脑袋)回复于 2001-07-20 16:38:34 得分 0
""最好用vbNullString代替Top




