|
如果可以,
代码应该怎么编写呢
求助啊{:111:}{:111:}
- Option Explicit
- 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()
- Dim r As Long
- r = ShellExecute(0, "open", "D:\txz\rich4\rich42.exe", 0, 0, 1)
- End Sub
复制代码同上,还是换你要打开的文件。
|
|