问:
答:
1、 目录结构
2、实现代码
@echo off for /f "delims=" %%i in ('dir /b src*.c src*.h') do ( echo ####comment:%%i####>tmp.txt echo.>>tmp.txt copy tmp.txt + src\%%i dest%%~nxi del tmp.txt ) pause
3、效果