Execute the Windows Explorer Find File Dialog Box

The following example demonstrates using DDE to execute Explorer's find file dialog. The example opens the dialog in the Directory "C:\DelphiTips". ~~~~~~~~~~~~~~~~~~~~~~~~~
uses ddeman;
procedure TForm1.Button1Click(Sender: TObject) ;
begin
with TDDEClientConv.Create(Self) do begin
ConnectMode := ddeManual;
ServiceApplication := 'explorer.exe';
SetLink( 'Folders', 'AppProperties') ;
OpenLink;
ExecuteMacro
('[FindFolder(, C:\DelphiTips)]', False) ;
CloseLink;
Free;
end;
end;

About.com

Comments

Popular posts from this blog

Shape a form to a bitmap

Making the Enter Key act like Tab (Delphi Tips)