亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

}: VBB [ӡ]

: fishyucat    rg: 2011-05-04 16:31
}: VBB
λ󣬲B˄hһNAS·ϵflogf30죩, ҵµ VB_VBԭ҂batchƽ_ VBݱ^
_܄hLogfilesԼĿµļ@ЩĿ䛅s܄hՈλҸĸ_ܰLogfilesĿµļĿ䛣ԼĿļĿ䛵ȣֻҪ^30̈́h

߀ՈλæСܶxˣ

-----------------------------------------------------
Dim strStartFolder
Dim iExpiredAge
dim objFSO, objStartFolder

strStartFolder="\\192.168.1.100\aaa\bbb\ccc\Logfiles"
iExpiredAge=30

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objStartFolder = objFSO.GetFolder(strStartFolder)

call DeleteFolder(objStartFolder,iExpiredAge)

Sub DeleteFolder(objFolder,iAge)

dim colFolders, colFiles
dim objSubFolder, objFile

Set colFolders = objFolder.SubFolders
For Each objSubFolder In colFolders
Call DeleteFolder(objSubFolder,iAge)
Next

Set colFiles = objFolder.Files
For Each objFile In colFiles
If DateDiff("D", objFile.DateLastModified, Now) > iAge Then objFile.Delete
Next

End Sub




gӭR Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2