Description: f SearchRec.Name[1] <> . then
Tree.Items.AddChild(Item, SearchRec.Name)
until FindNext(SearchRec) <> 0
FindClose(SearchRec)
TreeView1.Items.EndUpdate
end
end
procedure TForm1.Button1Click(Sender: TObject)
var
strOpenDir: string
begin
if SelectDirectory(strOpenDir, [sdAllowCreate, sdPerformCreate, sdPrompt],SELDIRHELP) then
try
GetDirectories(TreeView1, strOpenDir, nil, True)
except
ShowMessage( 错误信息 )
To Search:
File list (Check if you may need any files):
锥度计算\Project1.cfg
........\Project1.dof
........\Project1.dpr
........\Project1.exe
........\Project1.res
........\Unit1.dcu
........\Unit1.ddp
........\Unit1.dfm
........\Unit1.pas
........\Unit2.dcu
........\Unit2.dfm
........\Unit2.pas
锥度计算