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 Command1_Click()
ShellExecute Me.hwnd, "open", "C:\aa.doc", vbNullString,
End Sub
2.打开文件内容:
Private Sub Command1_Click()
Dim bteWord() As Byte
Open "C:\aa.doc" For Binary Access Read As #1
Get #1, , bteWord
Close #1
End Sub