Re ngen:
那么试试下面的代码吧:
:: DelphDel.bat - Delete files from the Delphi application
:: Will Sort - 2005/09/13 - CMD@WinXP
@echo off
IF "%1"=="" GOTO Start
IF "%1"=="/s" GOTO SafeMode
IF "%1"=="/S" GOTO SafeMode
:Help
echo Delete the following files from the Delphi application
for %%f in (*.~ddp, *.~dfm, *.~pas, *.dcu, *.dof, *.cfg, *.res, *.ddp, *.dll, *.exe) do echo %%f
GOTO End
:Start
for %%f in (*.~ddp, *.~dfm, *.~pas, *.dcu, *.dof, *.cfg, *.res, *.ddp, *.dll, *.exe) do del %%f
GOTO End
:SafeMode
for %%f in (*.~ddp, *.~dfm, *.~pas, *.dcu) do del %%f
GOTO End
:End
pause