forfiles command
top of page

forfiles command


You can use the Windows command, forfiles, to find which files in a directory have been modified after a certain date. If you right click in the directory you want to review, and select 'Open command window here' . . .

. . . you can get the command prompt and enter the 'forfiles' command followed by the operators /S and /D. [ '/S' directs the command to search all subfolders in the directory.] and then a date preceded by a plus or minus. Using a plus will get all dates after your specified data, a minus will get all dates before it.

The '/D' operator lets you run the search from today's date. So if you want a list of all files modified more than 30 days ago, you'd enter the command this way.


Sean O'Shea has more than 20 years of experience in the litigation support field with major law firms in New York and San Francisco.   He is an ACEDS Certified eDiscovery Specialist and a Relativity Certified Administrator.

The views expressed in this blog are those of the owner and do not reflect the views or opinions of the owner’s employer.

If you have a question or comment about this blog, please make a submission using the form to the right. 

Your details were sent successfully!

© 2015 by Sean O'Shea . Proudly created with Wix.com

bottom of page