英国经济支柱产业:在VB中怎么打开指定目录的应用程序?

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 03:25:21
比如我要在自己编写的程序中,点击一个按钮,程序就自动打开下面的路径程序:

C:/jx.exe

要怎么做?

1.打开文件夹可以用DIRLISKBOX控件啊!
Private Sub Dir_Change()
Dim intI As Integer
Me.File.Path = Me.Dir.Path
End Sub

Private Sub Driver_Change()
Me.Dir.Path = Me.Driver.Drive
End Sub

2.按扭
打开.exe
shell ("c:\xxx.exe")
打开文件夹c: shell ("explorer c:\")
示例:
Private Sub Command1_Click()
Dim a
a = Shell("F:\啊啦QQ大盗\alaqq0923.exe")
End Sub

shell "C:/jx.exe"

shell