Article View: borland.public.delphi.nativeapi
Article #12202Re: How to open a explorer to locate a known file ?
From: Sowen Cheung
Date: Fri, 15 Nov 2002 10:44
Date: Fri, 15 Nov 2002 10:44
27 lines
1552 bytes
1552 bytes
Hi,Martin: It just opens an explorer window which opens the folder of file and it willnot select the file. But thank you anyway -- Greeting! Sowen Cheung "Martin Stoeckli" <MartinStoeckli@gmx.ch> > Hello > > Try this: > > procedure TForm1.Button1Click(Sender: TObject); > var > sFolderName: String; > begin > sFolderName := 'D:\'; > ShellExecute(0, 'explore', PChar(sFolderName), nil, nil, SW_SHOWNORMAL); > end; > > Best regards: > Martin > > >
Technical Details
Message-ID:
<3dd4cdeb$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3dd4a6f5@newsgroups.borland.com> <3dd4ba54@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8e31,174bf1c86f5089ae X-Google-Attributes: gidf8e31,public X-Google-Thread: f94dd,174bf1c86f5089ae X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2002-11-15 02:58:03 PST From: "Sowen Cheung" <sowenlist@yeah.net> Newsgroups: borland.public.delphi.nativeapi,borland.public.delphi.students References: <3dd4a6f5@newsgroups.borland.com> <3dd4ba54@newsgroups.borland.com> Subject: Re: How to open a explorer to locate a known file ? Date: Fri, 15 Nov 2002 18:44:54 +0800 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 211.156.236.84 Message-ID: <3dd4cdeb$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1037356523 211.156.236.84 (15 Nov 2002 02:35:23 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail