Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "WinAPI";
Текущий архив: 2003.11.27;
Скачать: [xml.tar.bz2];

Вниз

Как открыть папку так чтобы появилось виндовое окно   Найти похожие ветки 

 
Wizard_Ex   (2003-09-22 15:44) [0]

Как открыть папку так чтобы появилось виндовое окно и в нем уже выделен нужный файл файл
аналогичный пример:
в свойствах ярлыка нажать Find Target и откроется окно с выделенным файлом


 
AlexKniga   (2003-09-22 18:53) [1]

%SystemRoot%\explorer.exe /e,C:\MyFile.exe
Т.е. смотри параметры ком. строки проводника.


 
Wizard_Ex   (2003-09-23 06:31) [2]

Плюс еще мой ответ
Отвечаю сам себе:

SHOpenFolderAndSelectItems Function

--------------------------------------------------------------------------------

Opens a Microsoft® Windows® Explorer window with specified items in a particular folder selected.

Syntax

HRESULT SHOpenFolderAndSelectItems( LPCITEMIDLIST pidlFolder,
UINT cidl,
LPCITEMIDLIST *apidl,
DWORD dwFlags
);
Parameters

pidlFolder
[in] Pointer to a fully qualified pointer to an item identifier list (PIDL) that specifies the folder.
cidl
[in] Count of items in the selection array, apidl. If cidl is zero, then pidlFolder must point to a fully specified ITEMIDLIST describing a single item to select. This function opens the parent folder and selects that item.
apidl
[in] Pointer to an array of PIDL structures, each of which is an item to select in the target folder referenced by pidlFolder.
dwFlags
[in] Optional flags. In the current implementation, this parameter is ignored.
Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

CoInitialize or CoInitializeEx must be called before using SHOpenFolderAndSelectItems. Not doing so causes SHOpenFolderAndSelectItems to fail.

Function Information

Minimum DLL Version shell32.dll version 6.0 or later
Custom Implementation No
Header shlobj.h
Import library shell32.lib
Minimum operating systems Windows XP


 
Wizard_Ex   (2003-09-24 17:33) [3]

И про explorer

%SystemRoot%\explorer.exe /select,C:\MyData\MyFile.exe

тады будет все окей


 
andew   (2003-10-02 16:42) [4]

ShellExecute(0,"explore","c:\my",0,0,SW_SHOWDEFAULT);
или
ShellExecute(0,"open","c:\my",0,0,SW_SHOWDEFAULT);



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

Форум: "WinAPI";
Текущий архив: 2003.11.27;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.018 c
3-89692
Sveta
2003-11-06 08:46
2003.11.27
Перенос записей из DBF в IB


4-90156
bolegator
2003-10-05 12:18
2003.11.27
Wheel2Key


14-90081
primus
2003-11-04 23:52
2003.11.27
В продолжение темы


1-89875
Dmitriy M. Volkov
2003-11-16 00:10
2003.11.27
FindFirst, FindNext error codes


1-89861
johny
2003-11-16 09:41
2003.11.27
работа с WebBrowser





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский