Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: FileDelete temp delete file files older than
CurrDay = TimeYmdHms ( ) TempFiles = FileItemize ("c:\temp\*.tmp")) For FileNum = 1 to ItemCount (TempFiles, @TAB) CurrFile = ItemExtract (FileNum, TempFiles, @TAB) CurrFileDate = FileTimeGetEx (StrCat ("c:\temp\", CurrFile),2) If TimeDiffDays (CurrDay, CurrFileDate) > 2 Then FileDelete (StrCat ("c:\temp\", CurrFile)) EndIf Next
Article ID: W15146
File Created: 2002:09:05:13:50:00
Last Updated: 2002:09:05:13:50:00