unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, ShellCtrls, StdCtrls;
type
TForm1 =
class(TForm)
Edit1: TEdit;
Edit2: TEdit;
Button1: TButton;
Button2: TButton;
ShellTreeView1: TShellTreeView;
ShellTreeView2: TShellTreeView;
Button3: TButton;
procedure Button3Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
edit1.text:=shelltreeview1.path;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
edit2.text:=shelltreeview2.path;
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
copyfile(pchar(edit1.Text),pchar(edit2.text),false);
end;
end.