I need help in a batch file to copy files that are on a list.txt from folders and sub-folders to another folder.
The files are on a network.
I have this code but nothing happens for some reason.
@echo & setlocal
md COPIEDFILES 2>nul
for /f "tokens=*" %%a in (LIST.txt) do (
for /f "tokens=* %%b in ('dir /s /a-d /b %%a') do copy %%b COPIEDFILES