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用此API函數可以直接調用TXT文件,它會調用文件的默認軟件打開文本文件。
至于如何创建这个句柄就不得而知了.要是有朋友知道.请指点.