regabc 当前离线
一级士官
评分人数
batman 当前离线
考官
荣誉版主
@echo off set "dpath=总目录绝对路径" set "pathf=要复制的文件的绝对路径" for /r "%dpath%" %%a in (.) do ( set "flag=" for /f %%b in ('dir /ad /b "%%a"') do set "flag=a" if not defined flag copy /y "%pathf%" "%%a" )复制代码
TOP
CrLf 当前离线
论坛巡查
(for /r %%a in (.) do copy 1.txt "%%a")>nul复制代码
@echo off set "dpath=总目录绝对路径" set "pathf=要复制的文件的绝对路径" for /r "%dpath%" %%a in (.) do copy /y "%pathf%" "%%a"复制代码