I have a batch file that is supposed to help me go find and copy a list of files to another folder. The list of files is in a .csv file separated with commas, for example xyz123,abc456
. But the script only finds and copies the first file then stops. Can anyone help me understand why it doesn't continue? Here's the code:
@ECHO OFF
set FIILELIST=C:\job\crcfilelist.txt
set FILESPATH=C:\filesource
set DESTPATH=C:\job\
for /f "delims=," %%x in (%FIILELIST%) do (forfiles /p %FILESPATH% /s /m %%x.* /c "cmd /c copy /y @path