private sub command1_click()
dim fsosys as new filesystemobject
dim fsofolder as folder
dim fsofile as file
set fsofolder = fsosys.getfolder("c:\")'换成指定的文件夹
debug.print fsofolder.path & "下的文件有: "
for each fsofile in fsofolder.files
if left(fsofile.name,2)="zf" then
debug.print "文件名称:" & fsofile.name & " 创建日期:" & fsofile.datelastmodified
end if
next
end sub
end sub