[求助]ShellExecute 的参数怎么写?
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 Form_Load()
Dim FilNam As String
FilNam = Clipboard.GetText '把剪贴板的数据储存在一个名为FilNam的变量里。
ShellExecute Me.hwnd, "open", FilNam, "", "", 5
End Sub
我想通过获取剪贴板信息,打开同一文件夹中的a.exe播放器,并直接播放b.rm文件。
1.剪贴板中的数据怎么写?
2.“ShellExecute Me.hwnd, "open", FilNam, "", "", 5 ”这一行怎么改?谢谢!
[此贴子已经被作者于2007-9-17 8:23:39编辑过]