my file name is something link this: file-0001-tgitm-20150515-1050-001.int
20150515 - this is dated (May 15 2015). How can I delete only the files older than 10 days?
Isn't the file date time reflect the file creation date ? If it is not, then forfiles will not be able to do that. The /D parameter is based on file date time. You will need to write script to do that. Windows Powershell script should be able to do the job.
i have come up with that fragment code to delete the files from a certain location... i will be deleting based on the filen ame now.
my file name is something link this: file-0001-tgitm-20150515-1050-001.int
20150515 - this is dated (May 15 2015). How can I delete only the files older than 10 days? Please advice, thanks!