Batch script to search certain folder names and copy a file there
Posted on 2011-10-18
I would like to build a batch script that searches out a certain folder name (e.g., "mainQC"), on all the hard drives of the computer and copy a file there. So for instance, I have a file called "qa_fix.pk3", an the user has the folder name "mainQC" in a few different locations on their computer because each time they have installed the program folder to a different path.
I need a batch that will search all the drives for all these folders and drop the file qa_fix.pk3 inside. Also...
* the file to be copied would be in the same location as the script being executed.
* the copy commands would need to overwrite any existing file with such a name
* any and all error notifications should also be disabled
Please...try to answer the question. I do not want to debate what I really think I need.
Thanks in advance.