Solved Copy the list file names one folder to another

August 1, 2017 at 19:04:00
Specs: Windows 7
Hi,
I have a list file names in txt format that files in one folder in that folder 'N' no of files so in that I need to copy only selected files which are I mentioned in list so how can I copy one folder to another please suggest

See More: Copy the list file names one folder to another

Reply ↓  Report •

#1
August 6, 2017 at 18:40:30
✔ Best Answer
example only:
set dest=c:\somewhere
for /f "tokens=*" %%a in (list) do copy %%a %dest%||echo %%a failed to copy>>log

Reply ↓  Report •
Related Solutions


Ask Question