Re: Поиск файла в каталогах запуска
От: agos Россия http://trtrmitya.wordpress.com
Дата: 18.12.07 10:04
Оценка:
Здравствуйте, kudmaks, Вы писали:

K>Можно конечно самому сделать перебор по переменным окружения, расширениям, но добиться чтоб это на 100% соотвествовало последовательности перебора системой — не так просто (плюс теоретически она может меняться). Может есть способ сделать это проще?

всё описано здесь

1. The directory from which the application loaded.
2. The current directory for the parent process.
3. The 32-bit Windows system directory. Use the GetSystemDirectory function to get the path of this directory.
4. The 16-bit Windows system directory. There is no function that obtains the path of this directory, but it is searched. The name of this directory is System.
5. The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
6. The directories that are listed in the PATH environment variable. Note that this function does not search the per-application path specified by the App Paths registry key. To include this per-application path in the search sequence, use the ShellExecute function.

Не переходите улицу на тот свет..
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.