复制代码
- @echo off
- set "U_Drive=X:\"
- set "SrcFolder=D:\aaaa"
- for /f %%i in ('type "Keyword.txt"') do (
- for /f "delims=" %%j in ('dir /b "%SrcFolder%\*.csv" ^| findstr "%%i"') do (
- copy "%SrcFolder%\%%j" "%U_Drive%"
- )
- )
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |