amen132 当前离线
列兵
评分人数
CrLf 当前离线
论坛巡查
@echo off (for /f %%a in ('dir /b /a-d d:\*.word d:\*.excel e:\*.word e:\*.excel') do move "%%a" d:\123\)>nul 2>nul复制代码
TOP
dnfreeuser 当前离线
上等兵
Hello123World 当前离线
荣誉版主
@echo off md d:\123 2>nul for %%i in (d e f g) do (for /f "delims=" %%j in ('dir /s /b %%i:\*.doc %%i:\*.xls') do copy "%%j" "D:\123") pause复制代码
caruko 当前离线
中校
@echo off md d:\123 2>nul for %%i in (d e f g h i j k l m n) do ( pushd "%%i:" ||goto :eof for /R %%j in (*.doc *.xls) do copy "%%j" "d:\123" popd )复制代码
wolonga123 当前离线
@echo off set a=d e f g h i j k l m n o p q r s t u v w x y z for /f %%I in (%a%) do if exist %a%: set b=%a% for /f %%i in (%b%) do dir /b/s/a-d %b%:*.doc *.xls&&move *.doc *.xls "d:\123"复制代码