- 的Windows 98 SE
- WMI不可用
我的代码看起来像这样,用我的使用MSScript VBScript中的甾体包装写的。
do
a = files.collectfiles("c:\userver", "")
for i = 0 to ubound(a)
f = a(i)
if strings.endswith(f, ".usv") then
d = files.readfilee(f)
on error resume next
executeglobal d
nErr = err.number
sErr = err.description
on error goto 0
if nErr <> 0 then
trace "*** Error " & nErr & ", " & sErr
end if
files.deletefile f
end if
next
system.sleep 10
system.cooperate
loop
调用files.collectfiles时有很多磁盘活动。是否有某种方法可以检测文件夹内容的变化,而无需实际扫描文件夹中的文件?
链接总是有益的,但这种好的建议是非常棒的。非常感谢您的意见。 – bugmagnet 2009-06-22 02:21:51