@echo off
set target_path=H:\SoftCodes\GDFS2021\BaseFrame\src
set copy_target_path=F:\20211125\
set vcffile=*.java
C:
cd %target_path%
for /f "delims=" %%s in ('dir /b/a-d/s "%target_path%"\"%vcffile%"') do (
echo %%s
copy /y "%%s" %copy_target_path%
)
pause

target_path为原目录

copy_target_path为目标目录

vcffile为需要复制的文件类型

来源:https://www.cnblogs.com/ios9/p/15601356.html

最后修改:2022 年 01 月 18 日
如果觉得我的文章对你有用,请随意赞赏