@echo off
setlocal Enable,ayedExpansion
set "searchPath=%cd%"
echo deleting .dcu and ~pas files under %searchPath% ...
for /r "%searchPath%" %%f in (
, *.~ddp
, *.~dpr
, *.~pas
, *.~pa
, *.~dfm
, *.$$$
, *.dcu) do (
del "%%f"
echo deleted "%%f"
)
echo All .dcu and ~pas files have been deleted.
该批处理脚本设置了当前目录作为搜索路径,并遍历该路径下所有.dcu,.~ddp,.~dpr,.~pas,.~pa,.~dfm,.$$$文件,逐个删除并显示已删除的文件名。最终确认所有目标文件已被删除。
1209

被折叠的 条评论
为什么被折叠?



