怎样判断一个目录是否存在? 怎样判断一个目录是否存在? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if DirectoryExists('c:\test') then ... ExistDirectory或者DirectoryExist(borland公司打击盗版,我机器上不能装,只能靠记性) if DirectoryExists('c:\test') then showmessage('existed') else showmessage('not existed'); DirectoryExists 函数就可了。很简单的 uses FileCtrl;procedure TForm1.Button1Click(Sender: TObject);begin ifnot DirectoryExists('c:\temp') then ifnot CreateDir('C:\temp') then raise Exception.Create('Cannot create c:\temp');end; treeview 控件的使用 关于先序树字符串如何转换为树 delphi中,如何获得自身程序的发布版本? 最近做了一个用于Delphi的调试工具,请大家试用一把! 有没有朗读中文的控件或是有关这方面的源代码也行! 对字符串的格式化是哪个函数 网络文件传输 100分,请教几个问题 delphi vs oracle error 谁知道TProcessEntry32在哪个单元里,TLhelp32是在哪里???(内空) 数据存储问题(分数最多可加到2000分) 如何用Adoquery对EXCEL表进行操作???
...
或者
DirectoryExist
(borland公司打击盗版,我机器上不能装,只能靠记性)
showmessage('existed')
else
showmessage('not existed');
begin
ifnot DirectoryExists('c:\temp') then
ifnot CreateDir('C:\temp') then
raise Exception.Create('Cannot create c:\temp');
end;