Re: How to open a windows folder ?
- From: groups@xxxxxxxxxxxxxxxxx
- Date: 28 May 2005 04:37:30 -0700
How can I open Windows Explorer, and automatically select a file? I see
several software in Delphi can do this, but couldn't found any
documentation about.
Example: I want to open in Windows Explorer the file c:\tmp\file.txt
The function to open the "c:\tmp" folder is posted here, but how can I
do the opened Windows Explorer to "point"/select the "file.txt" file?
Is there a code example?
Thanks in advance
Daniel
Nicholas Sherlock wrote:
> Robert Puts wrote:
> > I need to open a windows folder (not the windows open dialog, but the actual
> > folder) from within delphi, something like
> >
> > cFld:="C:\Windows\System32";
> > OpenFolder(cFld);
>
> Easy, use shellexecute!
>
>
> uses shellapi;
> begin
> shellexecute(handle,'open','C:\windows\system32',nil,nil,sw_shownormal);
> end;
>
> Cheers,
> Nicholas Sherlock
.
- References:
- How to open a windows folder ?
- From: Robert Puts
- Re: How to open a windows folder ?
- From: Nicholas Sherlock
- How to open a windows folder ?
- Prev by Date: Re: How to open a windows folder ?
- Next by Date: Re: How to open a windows folder ?
- Previous by thread: Re: How to open a windows folder ?
- Next by thread: Re: How to open a windows folder ?
- Index(es):
Relevant Pages
|
|