Page 1 of 1

getting a forfiles result that shows file locations

Posted: 15 Jun 2020 19:12
by Norma
I frequently generate file lists using a command like this:

dir *smith*.pdf /s /od > smithy.txt

Then, in a word processor (WP 5.1+), I trim the list to delete files before a particular date. Notwithstanding macro skills, it is tedious.

What is the syntax for getting a file list from forfiles that shows you the location of each file?

Re: getting a forfiles result that shows file locations

Posted: 15 Jun 2020 22:36
by Squashman

Code: Select all

forfiles /S /D -9/24/2007 /M *smith*.pdf /C "cmd /c echo @path"

Re: getting a forfiles result that shows file locations

Posted: 16 Jun 2020 06:23
by Norma
Thank you!