请注意,本文编写于 559 天前,最后修改于 508 天前,其中某些信息可能已经过时。
@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
为需要复制的文件类型