/**PageBeginHtml Block Begin **/ /***自定义返回顶部小火箭***/ /*生成博客目录的JS 开始*/ /*生成博客目录的JS 结束*/

cmd批量复制某类型文件(无需保持目录结构)

 

@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为需要复制的文件类型

 

posted @ 2021-11-25 09:40  一品堂.技术学习笔记  阅读(468)  评论(0编辑  收藏  举报