淮南通商农村合作银行:如何编写才能使vb程序中打开其他的程序及文件

来源:百度文库 编辑:中科新闻网 时间:2024/05/14 01:07:32
教教我

用API:

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

ShellExecute Me.hwnd, "open", "C:\Hello.jpg", "", "", 5