1. Computing

Execute the Windows Explorer Find File Dialog Box

From , former About.com Guide

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;
~~~~~~~~~~~~~~~~~~~~~~~~~

Delphi tips navigator:
» Delete files with the ability to UNDO
« Making a Form Non-Moveable

Top Related Searches delphi tips directory c delphi folders

©2013 About.com. All rights reserved.