I need to find all files with specific filename(for example main.css) in folder and all subfolders and then do something with it(eg. rename, move, delete, add text line, etc)
Windows – bat function to find a file in folder and subfolders and do something with it.
batch-filebatch-processingfindwindows
Related Topic
- Windows – How to get current date/time on the Windows command line in a suitable format for usage in a file/folder name
- How to run multiple .BAT files within a .BAT file
- Bash – ls command: how can I get a recursive full-path listing, one line per file
- Batch file. Delete all files and folders in a directory
- Regex – How to use regex with find command
- Windows – How to delete a folder and all contents using a bat file in windows
- Linux – How to find all files containing specific text on Linux
- Windows – Filename too long in Git for Windows
Best Answer
This is what you need:
Naturally you would replace
echo
with whatever it is you wish to do to the file. You can use wildcards if you need to: