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,
@echo off & setLocal EnableDELAYedeXpansion
for /f %%a in (Dir1\fileNameList.txt) do (
copy %%a Dir2
Am I missing anything?
Am I correct?