![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Как прогр. узнать где расположены папки Windows и Prog. Files [D7, Win95/98, WinME, NT4, Win2k, WinXP]
explorer © (2003-11-14 07:44:00)
Мастера!
Подскажите, как реализовать сабж, чтобы затем подставить в Path?
Dimka Maslov (2003-11-14 12:27:00) [1]http://delphibase.endimus.com/?action=viewtopic&topic=sysparams
serge (2003-11-14 12:10:00) [2]
You can use the SHGetSpecialFolderLocationfunction to retrieve the location of a special folder, which can be virtual or part of the file system. The function returns a PIDL, which the application must eventually free using the shell"s allocator. If the folder is part of the file system, you can convert the PIDL to a file system path by using the SHGetPathFromIDList function. For a list of special folders, see the description of the SHGetSpecialFolderLocation function.
explorer (2003-11-14 11:33:00) [3]
debugger ©
А если для Win95/98/ME ?
debugger (2003-11-14 09:33:00) [4]
windows - в системной переменной windir.
program files - в одноименной системной переменной (для NT).
Читать с помощью GetEnvironmentVariable.