Notes on exploring Windows command to list folders modified in past x days excluding specified folders like .git and node_modules
Last updated on: 5 May 2024 The number of folders and files within .git and node-modules results in long output of Windows commands like: forfiles /S /C “cmd /c echo @path” /D 30-04-2024 Ref: (My post:) Searching for files modified in a period in Windows Explorer and in Command Line . That makes commands like the above unviable for project folders using Git or Node Package Manager (npm). I should be able to exclude folders like .git and node_modules (and .next for Next.js projects) at least in the output but ideally in the recursion itself. To that end, I did some exploration which is so far unsuccessful but hopefully may become successful in future. This post is capturing the notes of my exploration so far. ================= Using batch file to list files created or modified in the last 7days Ref: https://stackoverflow.com/questions/73723028/using-batch-file-to-list-files-created-or-modified-in-the-last-7days powershell -nop -c "(dir -recurse|where { ((get-date('3.05.2024'