Re: Show contents of folder

Posted by Newb p15701 on February 05, 2008

In Reply to Re: Show contents of folder posted by Jenny, DelphiLand Team on February 04, 2008

: For example, to open the folder D:\Music, use the following source code:

: procedure TForm1.Button1Click(Sender: TObject);
: begin
: ShellExecute(Handle, 'open', PChar('explorer.exe'), PChar('D:\Music'), nil, SW_SHOW);
: end;

Hi Jenny,

It doesn't work :(

I get an error from Turbo Delphi Explorer:
E2003 Undeclared identifier: 'ShellExecute'

Maybe you used another edition of Delphi?
Please help...

Related articles


Follow Ups