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 Dim lngResult As Long Dim strFileName As String strFileName = "C:\......\Test.txt" lngResult = ShellExecute(0, "open", strFileName, "", "", 1)
Dim strFileName As String strFileName = "C:\......\Test.txt"
lngResult = ShellExecute(0, "open", strFileName, "", "", 1)
http://www.csdn.net/expert/topic/422/422618.shtm
ok?