1,451
社区成员
发帖
与我相关
我的任务
分享
Dim filenum As Integer
Static strFN As String
On Error Resume Next
If Dir(strFN) = "" Then
With savefile
.CancelError = True
On Error GoTo ErrHandler
.Flags = cdlOFNExplorer Or cdlOFNLongNames Or cdlOFNHelpButton
.DialogTitle = "保存文件"
.InitDir = "D:\communication\"
.Filter = "所有文件(*.*)|*.*|文本文件" & "(*.c2)|*.c2|批文件(*.bat)|*.bat"
.FilterIndex = 2
.ShowSave
End With
strFN = savefile.FileName
End If
If Dir(strFN) <> "" Then
filenum = FreeFile()
Open savefile.FileName For Output As #filenum
Write #filenum,****
Close filenum
End If