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
调用格式:ShellExecute(form.hWnd, "宽埋open", "文件含路径", "", ""唤绝, 1)'
例如:=ShellExecute(form.hWnd, "open", "d:\system\1.txt", "", "", 1)'
Private Sub Form_Load()文件路径 乎巧此= Command
End Sub
程序2 代码如上 command就是你shell时 带入的参数岁迅
程序2知道文件路径了 你就可以宽差去 *** 作了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)