search given set of file names.* in all sub directories and copy to another directory

前端 未结 2 1631
孤城傲影
孤城傲影 2021-01-26 04:42

I need extension to this question: search given set of files and copy to another directory

There is a given set of file names in a needToFind.txt file such as:

m

2条回答
  •  借酒劲吻你
    2021-01-26 05:02

    @echo off
    cd "\MyImageFolder"
    for /F "usebackq delims=" %%a in ("needToFind.txt") do (
       for /R %%b in ("%%~Na.*") do copy "%%b" "\anotherFolder"
    )
    

提交回复
热议问题