@echo off
set /p abc=<"C:\Documents and Settings\Administrator\abc.txt"
for %%i in (%abc%) do (copy /y D:\aabbcc\%%i E:\aabb\)
pause
保存为批处理运行看看
copy E:\Jude\*.* Doc\
请参考这个命令,前提是目标文件夹已经存在,同时只能复制文件不能复制源文件夹下的文件夹
for /f "delims=" %%a in ('type abc.txt') do (
copy "123\%%~a" "321\"
)
@echo off
for /F %%i in (F:\学习资料\含文件名的文件.txt) do (copy /y F:\学习资料\所对照的源文件夹\%%i F:\学习资料\结果文件\ )
pause