![]() |
Здравствуйте, гость ( Вход | Регистрация )
![]() |
DIMEDROLL |
![]()
Сообщение
#1
|
![]() Участник ![]() ![]() Группа: Участник Сообщений: 165 Регистрация: 28.9.2008 Из: Киев Пользователь №: 304 Спасибо сказали: 23 раз(а) Репутация: ![]() ![]() ![]() |
что то под вечер немогу смекнуть.. хочу получить фолдер, куда установленны и устанавливаются по дефолту программы, например на виндоуз:
"C:/Program Files/" "C:/Program Files(x86)/" на маке(насколько помню) ":my_hd/Applications" ну и на линухе.... как его правильнее и кросплатформеннее написать?) |
|
|
![]() |
Kagami |
![]()
Сообщение
#2
|
Старейший участник ![]() ![]() ![]() ![]() Группа: Участник Сообщений: 601 Регистрация: 2.2.2009 Пользователь №: 523 Спасибо сказали: 101 раз(а) Репутация: ![]() ![]() ![]() |
Цитата %ProgramFiles% This variable points to Program Files directory, which stores all the installed program of Windows and others. The default on English-language systems is C:\Program Files. In 64-bit editions of Windows (XP, 2003, Vista), there are also %ProgramFiles(x86)% which defaults to C:\Program Files (x86) and %ProgramW6432% which defaults to C:\Program Files. The %ProgramFiles% itself depends on whether the process requesting the environment variable is itself 32-bit or 64-bit (this is caused by Windows-on-Windows 64-bit redirection). WOW64 Сообщение отредактировал Kagami - 28.2.2010, 16:56 |
|
|
![]() ![]() ![]() |
![]() |
Текстовая версия | Сейчас: 16.2.2025, 23:33 |