What I want to do is following. I want to create some bat file, that will recursively search for files starting from current directory and replace with the file that I provided. For ex. if I want to search and replace test1.txt, I'm opening this mini app and writing text1.txt, and placing the file that I want to be replaced with.
- Dir
- app.bat
- test1.txt // app will recursively search inside folder 1 and folder 2 and will replace all found results with test1.txt
- folder 1
- folder 2
I wonder, if there is ready to go app or bat file for this reason?
The Batch file below start from current directory, recursively search the file given in the first parameter and copy over it (with same name) the file given in second parameter:
For example: