delphi 判断目录是否存在

Posted tulater

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了delphi 判断目录是否存在相关的知识,希望对你有一定的参考价值。

delphi7

if not DirectoryExists(Edit1.Text) then 判断目录是否存在
begin
   //判断目录不存在
end;

delphi 10.3

uses
  FileCtrl;

procedure TForm4.FormCreate(Sender: TObject);
begin
  if  not FileCtrl.DirectoryExists(C:	emp) then
    showmessage(目录不存在);


end;

 

以上是关于delphi 判断目录是否存在的主要内容,如果未能解决你的问题,请参考以下文章