Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.025 c
1-1092038078
bles
2004-08-09 11:54
2004.08.22
Проверить Edit1.Text - цифровой?


6-1087993922
Николай
2004-06-23 16:32
2004.08.22
Как установить компонент NMPOP3 в Delphi7 из Delphi5?


14-1091292086
Knight
2004-07-31 20:41
2004.08.22
Люди... напишите полезные утилиты в пределах 5 метров...


3-1091281147
Wolfram
2004-07-31 17:39
2004.08.22
Какие сложности могут возникнуть при работе с Power Builder 9.0


11-1079715719
nester
2004-03-19 20:01
2004.08.22
Как убрать заголовки страниц в TabControl?




   Наверх