Hello everybody,
I am dealing with an issue.
I have a list (txt) (e.g. fileNameList.txt) with fileName of some of the files in a certain directory (Dir1).I want to copy all the files in another directory (Dir2) based on this criteria:
"Search for file in Dir1, whose name is in the fileNameList.txt list and save a copy in Dir2.Can you please help me?
Thanks and regards,
Pupli@echo off & setLocal EnableDELAYedeXpansion pushd Dir1 for /f %%a in (Dir1\fileNameList.txt) do ( copy %%a Dir2 )Am I missing anything?
Am I correct?Please help
can you post what is in fileNameList.txt?
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |