Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords:
AddExtender("Wsrch34I.dll");Searcher Extender DLL timenow=TimeYmdHms() ;get current datetime hand=srchInit("C:\Program Files\ositis Software\winproxy\logs","*.log","","",16) ;initializes your search while 1 file=srchNext(hand);gets first file if file=="" then break ;if no more files break out of while loop timenow=TimeYmdHms();gets todays date getfiletime=FileYmdHms(file);gets file time if TimeDeffDays(timenow,getfiletime) > 7 then continue ; too old FileAppend(file, "C:\Program Files\ositis Software\winproxy\logs\winproxyweekly.txt") ;copies the file endwhile srchFree(hand); frees search handle Message("File Delete", "Completed.")
Article ID: W13228
Filename: Copying Files from a Given Date.txt
File Created: 2001:03:01:14:45:38
Last Updated: 2001:03:01:14:45:38