Thread View: alt.comp.borland-delphi
2 messages
2 total messages
Started by At
Tue, 15 Apr 2003 14:46
Exploring a file - ShellExecute
Author: At
Date: Tue, 15 Apr 2003 14:46
Date: Tue, 15 Apr 2003 14:46
8 lines
1572 bytes
1572 bytes
Hi! I want to explore a file in Windows Explorer. ShellExecute is working good with folders, but I want a file to be selected in the file list. How can I tell to Explorer, select a specified file? Best Regards, At
Re: Exploring a file - ShellExecute
Author: Dodgy
Date: Tue, 15 Apr 2003 15:53
Date: Tue, 15 Apr 2003 15:53
24 lines
2078 bytes
2078 bytes
On Tue, 15 Apr 2003 14:46:40 GMT, "At" <attila40@hotmail.com> waffled on about something: >Hi! > >I want to explore a file in Windows Explorer. ShellExecute is working good >with folders, but I want a file to be selected in the file list. >How can I tell to Explorer, select a specified file? > >Best Regards, >At There are a load of command line params you can pass to explorer to control this sort of thing... Have a play with this... params:='/n, /e, /select, '+defaultdir+filename; ShellExecute(Application.MainForm.Handle, 'open', 'explorer', pchar(params),'', ShowCmd); Dodgy. -- MUSHROOMS ARE THE OPIATE OF THE MOOSES
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads