Wow, that was very helpful. Do you know if it's possible to put in wild cards in the batch file code or in the file names in the list? I have a list of files. In the folder there are files with the same name as in the list but some of the files has a suffix. (i.e. in the list i have THS-HK-004 and in the folder I have THS-HK-004.pdf and THS-HK-004 Rev 01.pdf and THS-HK-004_rev2.pdf and I want all three of them copied to the new folder) I know it's not very structured how the files are saved, but in the project there are many workers who save the files, and not everyone follow the rules ;-)
I don't know. Never tried wild cards. My file lists are exact. Give it a try. Probably would work given it's made of dos/shell commands. Also study more about the commands used, that might provide the answer.
That's a lot to ask of a batch script. A bit more than I know how to accomplish. It would take some research. Which platform, by the way? Each is different how to do this stuff in batch/shell scripts.
Very helpful. I would like to copy files listed in a text file with full path names from drive d: to the same path on drive i: . The paths already exist on drive i. Would very much appreciate any suggestions.
I don't have time to test, but off the top of my head you should be able to use the "move full paths" batch file and change "do move" to "do copy". macOS change "mv" to "cp". Update the source path of course. In the batch file, instead of "%%~fa" use the new full path and existing file name. For example: "I:\destinationpath\%%a". I *think* that would work, but not positive. You have to search the web for how the variables work to get it right. Do some experimentation. That's how I got this far.
Here's a link that shows some of the DOS variable variations for files: www.alttechnical.com/knowledge-base/windows/102-file-name-variables-in-windows-batch