Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.08.22;
Скачать: CL | DM;

Вниз

Открыть папку и выделить в ней нужный мне файл...   Найти похожие ветки 

 
Spike ©   (2004-08-05 15:00) [0]

Как, из программы, открыть папку и выделить в ней нужный мне файл? Пробовал ShellExecute, но файл выделить не получается :(


 
KosilkA ©   (2004-08-05 15:58) [1]

shellexecute(0, nil, "explorer", pchar(" /select," + FileName), nil, SW_SHOWMAXIMIZED);


 
Sergey Kaminski ©   (2004-08-05 16:01) [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.


 
Spike ©   (2004-08-05 16:50) [3]

Спасибо!!! Все работает!



Страницы: 1 вся ветка

Текущий архив: 2004.08.22;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.036 c
1-1091965649
Relaxxx
2004-08-08 15:47
2004.08.22
Выделение итемса TreeView по его значеню в Data


1-1092044299
Brain Force
2004-08-09 13:38
2004.08.22
Компонент для выбора каталога


1-1091646101
Фёдор Мегатронов
2004-08-04 23:01
2004.08.22
Как быстро достать информацию по данному указателю ?


3-1091159704
rus9
2004-07-30 07:55
2004.08.22
TQuery


3-1091204257
Донской
2004-07-30 20:17
2004.08.22
Переименование поля в ACCESS из дельфи