if FileExists('c:/good/bad.exe') then<br> begin<br> DeleteFile('c:/good/bad.exe');<br> showmessage('文件已经删除!');<br> end<br> else<br> MessageBox(Application.handle,'文件不存在!','提示',mb_ok);<br>