本帖最后由 pcl_test 于 2015-4-12 21:54 编辑
回复 4# 228630386 - @echo off
- for /f "delims=" %%a in ('type "指定文件夹列表.txt"') do (
- ::for /r /d %%b in ("*%%a") do (
- for /f "delims=" %%b in ('dir /ad /s /b "*%%a"') do (
- if exist "%%b\5.jpg" (
- md "E:\提取结果%%~pb%%~nb" 2>nul & copy "%%b\5.jpg" "E:\提取结果%%~pb%%~nb"
- ) else (>>"不存在.txt" echo,%%b)
- )
- )
- pause
复制代码
|