Can be either
@echo off
REM Filename to search in
SET filename=codes.txt
REM Image extension
SET extension=.jpg
REM output folder
SET outputFolder=out
ECHO Creating output folder
MKDIR %outputFolder%
ECHO.
FOR /F "tokens=*" %%i IN (%filename%) DO (
ECHO Copying file %%i%extension% to %outputFolder%
COPY %%i%extension% %outputFolder%\%%i%extension%
REM Test - makes a blank file for each code to test copying with with
REM type nul >>%%i%extension%
)
abc100
abc101
abc102
abc103
abc104
abc105
abc106
abc107
abc108
abc109
abc110
abc111
abc112
abc113
abc114
Hmmm the issue is having something that would read a particular list of file names and then search, find and copy the files into a new folder.