Click here for important information about

Solved Forfiles Change Error Message

Custom built pc / Mobo: asus x99-deluxe lga...
December 10, 2015 at 05:50:30
Specs: Windows 10 Pro x64, I7-5820k Haswell-E 6-core @3.3 ghz | 16 GB DDR4
Hello everyone,
When issuing a forfiles command and there are no results it will display the message ERROR: No files found with the specified search criteria Is it possible to change the error message within my batch file to something like "There are no files older than 1 week"?


ASCII Question, Get an ANSI

See More: Forfiles Change Error Message

December 11, 2015 at 11:44:17
✔ Best Answer
Consider the following:
forfiles /d +14 2> nul || echo Something went wrong

How To Ask Questions The Smart Way

Report •

December 11, 2015 at 13:06:13
Hello Razor2.3,
Thank you. This accomplishes what I need.


ASCII Question, Get an ANSI

Report •
Related Solutions

Ask Question