
18.05.2011, 19:29
|
 |
Let Me Show You
|
|
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
|
|
Код:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Finder;
type
TForm1 = class(TForm)
Button1: TButton;
Memo1: TMemo;
Finder1: TFinder;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
Finder1.Directory:='c:\Windows'; // можно задать в design-time
Finder1.Mask:='*.*'; // можно задать в design-time
Finder1.Execute;
Memo1.Lines.Assign(Finder1.FindList);
Finder1.FindList.SaveToFile('g:\__Apps\__\Finder.txt');
end;
end.
Memo1 просто для примера!
__________________
Пишу программы за еду.
__________________
|