Подскажите как получить путь к этой и другим подобным дирректориям?
Наверное вопрос подобный уже задавался, но к сожлению я не отыскал ответа на него.
Tok писал(а):Может для VB существуют переменные среды? Если да, то как их пользовать?
Environ Function
Returns the String associated with an operating system environment variable.
Syntax
Environ({envstring | number})
The Environ function syntax has these named arguments:
Part Description
envstring Optional. String expression containing the name of an environment variable.
number Optional. Numeric expression corresponding to the numeric order of the environment string in the environment-string table. The number argument can be any numeric expression, but is rounded to a whole number before it is evaluated.
Remarks
If envstring can't be found in the environment-string table, a zero-length string ("") is returned. Otherwise, Environ returns the text assigned to the specified envstring; that is, the text following the equal sign (=) in the environment-string table for that environment variable.
If you specify number, the string occupying that numeric position in the environment-string table is returned. In this case, Environ returns all of the text, including envstring. If there is no environment string in the specified position, Environ returns a zero-length string.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DocFolderPaths]
"TEST"="C:\\Documents and Settings\\TEST\\Мои документы"
Шурик писал(а):[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DocFolderPaths]
"TEST"="C:\\Documents and Settings\\TEST\\Мои документы"
!!!!!это в ХР!!!!!
TEST - имя учетной записи...
Для остальных папок найдешь, там же в реестре
Konst_One писал(а):вот прога для проверки, что у тебя в environments:
Сейчас этот форум просматривают: Google-бот, Yandex-бот и гости: 2