应用filesystemobject对象 引入micosoft scriping suntime Dim fso As New FileSystemObject If fso.FileExists(App.Path & "\text.txt") = False then ................................. end if
Dir$: ' Remove any existing destination file If Len(Dir$(sFileName)) > 0 Then Kill sFileName End If
引入micosoft scriping suntime Dim fso As New FileSystemObject
If fso.FileExists(App.Path & "\text.txt") = False then
.................................
end if
If Len(Dir$(sFileName)) > 0 Then
Kill sFileName
End If