LOG "delete_old_files_event.log" /append /maxsize=1000 SET CutOffDate = %date DATESUB CutOffDate 30 DELETE "*" /olderthan=CutOffDate /subdirs