具体就像搜:d:/aa/下的文件
解决方案 »
- 200RMB 求 Delphi 窗体代码 转换正则数据! 顶者有分!
- capability not support!如何解决这个错误啊?
- 对于已经注册的类,如何才能取消掉呢
- 向treeview1已有的几个根中的指定的一个根下面增加一个子项?
- 请教 jxzqsun (少年时代) 大侠。
- 我要把一个adotable中的一列字段的内容加到一个组合框的列表中,以下代码出现问题,急请教。
- 程序中执行一bat批处理文件,怎么检测批处理文件已经执行完毕,在线等待。。。
- ADO+Access的问题(简单)
- 如何把大于32768的图片存入数据库?那位大虾帮忙,谢了先
- 工作的烦恼
- 请问,如何用代码来认别 Win98 和 Win Me
- 请问:当image是自动生成的时候,sender as timage是否能用?
// getFileListFromDir('c:\windows',false,fileList);
//c:\windows or c: ture|false
procedure getFileListFromDir(dir:string;includeSubDir:boolean;var fileList:TStringList);
var
sr:TSearchRec;
path:String;
begin
path:=dir+'\'; //c:\windows\
dir:=dir+'\*.*'; //c:\windows\*.*
if findFirst(dir,faanyfile,sr)=0 then
repeat
begin
if (sr.Name<>'.') and (sr.Name<>'..') and ((fileGetAttr(path+sr.Name) and faDirectory)<>faDirectory) then
fileList.Add(path+sr.Name);
if (includeSubDir) and (sr.Name<>'.') and (sr.Name<>'..') and ((fileGetAttr(path+sr.Name) and faDirectory)=faDirectory) then
getFileListFromDir(path+sr.Name,includeSubDir,fileList);
end;
until findNext(sr)<>0;
findClose(sr);
end;