I need to get a list of directories older than 90 days from 'today's' date using windows command line so I can schedule a batch file to run these folders through a separate process.
I need to list folders and subfolders only, no files.
I have tried using 'dir
' which produces the list I need:
dir /b /s /a:d /o:gen >C:\file_list.txt
But, I can't check for dates greater than X using 'dir
'.
I've looked at using 'forfiles
' but this won't produce the list as I need it which my dir attempt produces.
To add some more complexity, ideally I need to check the date on the files within a folder rather than the folders date properties.
Any help is greatly appreciated, thanks.