asp如何自动定时删除指定文件夹里的文件?
asp如何自动定时删除指定文件夹里的文件?
如何定时自动执行下面的删除文件呀?
<%
Set fso = CreateObject("Scripting.FileSystemObject")
Path = server.MapPath("TempWord/")
Set f = fso.GetFolder(Path)
Set fc = f.Files
For Each f In fc
If fso.FileExists(f) Then fso.DeleteFile(f)
'If fso.FolderExists(f) Then fso.DeleteFolder(f)
Next
%>