如何取得一个目录下所有文件的名字? TOpenDialog打开一个文件夹,如何取得一个目录下所有文件的名字? 包括后缀 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure FindFiles(APath: string; var strsFileNames: TStrings);var FSearchRec: TSearchRec; FindResult: Integer;begin strsFileNames.Clear; if APath[length(APath)] <> '\' then APath := APath + '\'; FindResult := FindFirst(APath + FileNameExt, faAnyFile + faHidden + faSysFile + faReadOnly, FSearchRec); try while FindResult = 0 do begin strsFileNames.Add(LowerCase(APath + FSearchRec.Name)); FindResult := FindNext(FSearchRec); end; finally FindClose(FSearchRec); end;end; 事务处理 用进度条显示发送邮件的进度 运行错误分析(存取非法) 大家把qq或者msn留下,方便联系哦.(散分) 怎么获得桌面的墙纸更改消息!! 誰用過IDSMTP發送郵件?請進來一下. 请高手帮忙,一定给分。。。 今天收到一北京律师事务所的来信,要求对我的软件进行版权登记保护,大家认为有必要吗? delphi sql小小问题 请教高手,关于互斥访问表的问题 急需大家的帮忙!...谢谢!.. 急问:有关发送邮件的问题
var
FSearchRec: TSearchRec;
FindResult: Integer;
begin
strsFileNames.Clear;
if APath[length(APath)] <> '\' then
APath := APath + '\';
FindResult := FindFirst(APath + FileNameExt, faAnyFile + faHidden +
faSysFile + faReadOnly, FSearchRec);
try
while FindResult = 0 do
begin
strsFileNames.Add(LowerCase(APath + FSearchRec.Name));
FindResult := FindNext(FSearchRec);
end;
finally
FindClose(FSearchRec);
end;
end;