|
Dim a1,a2,a3,a4,a5,a6
Set a1=createobject("scripting.filesystemobject")
Set a2=a1.createfolder("e:\han")
Set a3=a1.createtextfile("e:\han\8.txt")
Set a6=a1.getfolder("e:\han")
Set a4=a1.getfile("e:\han\8.txt")
Set a5=a1.opentextfile("e:\bin.txt",2,true)
a5.writeline("the last modified time is '"&a4.datelastmodified&"'")
a5.close
If a4.datelastmodified="2007-8-13*" Then
a3.close
a4.delete
else
a4.copy("e:\8.txt")
a3.close
a6.delete
End If
a4指向的文件的修改日期为2007-8-13 10:10:06,但我不知道怎么用通配符匹配,有哪位高人知道吗,指点一下 |
|