@echo off
setlocal enabledelayedexpansion
rem 设置目标目录
set "target_dir=C:\Program Files\Autodesk"
for /d %%i in ("%target_dir%\*") do (
rem 检查父目录名是否包含autocad(不区分大小写)
echo "%%~nxi" | find /i "autocad" >nul
if !errorlevel! equ 0 (
rem 检查是否存在fonts子目录
if exist "%%i\fonts\" (
echo 找到符合条件的目录: %%i\fonts
xcopy /y/h/s *.shx "%%i\fonts\"
echo 已将该目录下的shx字体拷贝至%%i\fonts\目录下。
)
)
)
pause 1>nul 2>nul

浙公网安备 33010602011771号