zzm129126 当前离线
列兵
@echo off for /f "delims=" %%a in (A.txt) do ( copy /n "E:\B\%%a.pdf" "E:\C")复制代码
xp3000 当前离线
少尉
@echo off for /f "delims=" %%a in (A.txt) do ( copy /n "E:\B\%%~na.pdf" "E:\C" if not exist "E:\C\%%~nxa" echo %%~nxa>>不存在的文件.txt ) pause复制代码
TOP
@echo off for /f "delims=" %%a in (A.txt) do ( if exist "E:\B\%%~nxa" (copy /n "E:\B\%%~nxa" "E:\C") else (echo %%~nxa>>D.txt) ) pause复制代码
评分人数
qixiaobin0715 当前离线
大校
@echo off (for /f "delims=" %%a in (A.txt) do ( if exist "E:\B\%%a.pdf" ( copy /n "E:\B\%%a.pdf" "E:\C" ) else ( echo,文件夹中不存在"%%a.pdf" ) ))>D.txt pause复制代码