本帖最后由 qixiaobin0715 于 2021-5-14 14:29 编辑
表述的不是太清楚只能这样了- @echo off
- set "path1=C:\abc\"
- set "path2=D:\123\"
- copy "%path1%1.HTML" "%path2%"
- copy "%path1%1.TXT" "%path2%"
- pushd %path2%
- for /f "delims=" %%a in ('dir /b /s /ad') do (
- copy "%path1%1.HTML" "%%a"
- copy "%path1%1.TXT" "%%a"
- )
- pause
复制代码
|