List files that are newer than a specified date.

Have you ever been looking for a file that you just saved the day before but don’t remember where you saved it? You just had it! You could search C: drive for a wildcard and then sort everything by date, or you could run the below. In the below example I think it is somewhere in the users directory so you start there.

cd C:\users
forfiles /s /m *.* /d +"01/20/2022" /c "cmd /c echo @path @fdate @ftime" >> c:\tech\list.txt

This will append the output to a text file called “list.txt” at the C:\tech\ directory. Simple!

Leave a Reply

Your email address will not be published. Required fields are marked *