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?
getting a forfiles result that shows file locations
Moderator: DosItHelp
Re: getting a forfiles result that shows file locations
Code: Select all
forfiles /S /D -9/24/2007 /M *smith*.pdf /C "cmd /c echo @path"