I have a requirement for a batch script. I have log file under below directory (actually multiple directories with different names under E:\TIBCO\).
E:\TIBCO\*\6.0.0\LogFiles with Spotfire.Dxp.Automation.*.*
I need to perform below steps with the batch script
- move (copy and delete) all the files that are with - Spotfire.Dxp.*.*.*(ex Spotfire.Dxp..1.) from the above paths to- E:\TIBCO\logsArchival\rotatedDir
- zip all the files that are older than 60 from - E:\TIBCO\logsArchival\rotatedDirto- E:\TIBCO\logsArchival\ArchiveDir
- delete the zip files that are older than 120 days from - E:\TIBCO\logsArchival\ArchiveDir
All the above steps need to be written to the logs.
 
     
     
    