![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Открыть папку и выделить в ней нужный мне файл... [D7, WinXP]
Spike © (2004-08-05 15:00:00)Как, из программы, открыть папку и выделить в ней нужный мне файл? Пробовал ShellExecute, но файл выделить не получается :(
Spike (2004-08-05 16:50:00) [1]Спасибо!!! Все работает!
Sergey Kaminski (2004-08-05 16:01:00) [2]Вот все ключи Explorer'a:
Explorer [/n] [/e] [(,)/root,<object>] [/select,<object>]
/n Opens a new single-pane window for the default
selection. This is usually the root of the drive Windows
is installed on. If the window is already open, a
duplicate opens.
/e Opens Windows Explorer in its default view.
/root,<object> Opens a window view of the specified object.
/select,<object> Opens a window view with the specified folder, file or
application selected.
Examples:
Example 1: Explorer /select,C:\TestDir\TestApp.exe
Opens a window view with TestApp selected.
Example 2: Explorer /e,/root,C:\TestDir\TestApp.exe
This opens Explorer with C: expanded and TestApp selected.
Example 3: Explorer /root,\\TestSvr\TestShare
Opens a window view of the specified share.
Example 4: Explorer /root,\\TestSvr\TestShare,select,TestApp.exe
Opens a window view of the specified share with TestApp selected.
KosilkA (2004-08-05 15:58:00) [3]shellexecute(0, nil, 'explorer', pchar(' /select,' + FileName), nil, SW_SHOWMAXIMIZED);