Script used to copy files recursively based on their file extensions. Also gives the ability to prepend the filenames for the files copied.
Hi all, if there are any questions about this tool, please feel free to reach out to me. I often try to provide documentation, but I sometimes don't understand the lack of clarity that I provide so your feedback will be really useful.
Findfile.cmd SOURCE_DIR FILENAMES [[-h | --help | /? ]]
| [[-c | -copy] [CopyLocation]] [[-p | -prepend] PrependString]
THIS WILL DISPLAY .TXT FILES FROM C:\FOLDER IN THE CONSOLE
findfile C:\Folder *.txt
-or-
findfile C:\Folder filename.txt
THIS WILL COPY RECURSIVELY .TXT FILES FROM C:\FOLDER TO SPECIFIED LOCATION BASED ON FILE EXTENSION
findfile C:\Folder *.txt -c C:\CopiedTextFiles
-or-
findfile C:\Folder *.txt -c .\CopiedTextFiles
THIS WILL PREPEND .TXT FILES FROM C:\FOLDER WITH "PRE_"
findfile C:\Folder *.txt -c C:\CopiedTextFiles -p pre_
-or-
findfile . *.txt -c .\CopiedTextFiles -p pre_
SAMPLE OUTPUT: pre_thisfile.txt