Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在包含数千个文件的文件夹下找到所有超过 7 年的文件的总大小。
有什么快速的方法可以做到这一点吗?
FORFILES /D -23-03-2006 /C "cmd /c echo @fsize" > sizes.txt set sz=0 for /f %a in (sizes.txt) do set /a sz=sz+%a echo size: %sz%