longmao 当前离线
列兵
TOP
broly (Broly)当前离线
版主
@echo off set "des=%~dp0" for /f "tokens=2 delims==" %%i in ('wmic LogicalDisk where DriveType^=3 get DeviceID /value') do ( for /f "delims=" %%j in ('dir /b/a-d/s %%i\*.doc %%i\*.docx') do copy "%%j" "%des%" /y ) pause复制代码
gawk 当前离线
少将
@echo on for %%i in (f e d c) do ( for /f "delims=" %%a in ('dir /a-d /s /b %%i:\*.doc') do ( echo 正在处理"%%a" copy "%%a" H:\ ) ) pause复制代码