vb打开文件的代码
发布网友
发布时间:2022-12-06 02:56
我来回答
共2个回答
热心网友
时间:2024-12-05 16:49
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_dblClick()
Dim A As New Shell
A.ShellExecute (File1.Path & "\" & File1.FileName)
End Sub
在“工程”---“引用”中勾选上“Microsoft Shell controls and automation”
热心网友
时间:2024-12-05 16:49
open "文件名" for input as #1