|
|
|
Рег файл
|
|||
|---|---|---|---|
|
#18+
Нужно создать *.reg файл, который бы добавлял новый путь в переменную Path вариант Код: plaintext 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.12.2006, 11:20 |
|
||
|
Рег файл
|
|||
|---|---|---|---|
|
#18+
[reg.exe]C:\>reg add /? REG ADD KeyName [/v ValueName | /ve] [/t Type] [/s Separator] [/d Data] [/f] KeyName [\\Machine\]FullKey Machine Name of remote machine - omitting defaults to the current machine. Only HKLM and HKU are available on remote machines. FullKey ROOTKEY\SubKey ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] SubKey The full name of a registry key under the selected ROOTKEY. /v The value name, under the selected Key, to add. /ve adds an empty value name (Default) for the key. /t RegKey data types [ REG_SZ | REG_MULTI_SZ | REG_EXPAND_SZ | REG_DWORD | REG_BINARY | REG_NONE ] If omitted, REG_SZ is assumed. /s Specify one character that you use as the separator in your data string for REG_MULTI_SZ. If omitted, use "\0" as the separator. /d The data to assign to the registry ValueName being added. /f Force overwriting the existing registry entry without prompt. Examples: REG ADD \\ABC\HKLM\Software\MyCo Adds a key HKLM\Software\MyCo on remote machine ABC REG ADD HKLM\Software\MyCo /v Data /t REG_BINARY /d fe340ead Adds a value (name: Data, type: REG_BINARY, data: fe340ead) REG ADD HKLM\Software\MyCo /v MRU /t REG_MULTI_SZ /d fax\0mail Adds a value (name: MRU, type: REG_MUTLI_SZ, data: fax\0mail\0\0) REG ADD HKLM\Software\MyCo /v Path /t REG_EXPAND_SZ /d ^%systemroot^% Adds a value (name: Path, type: REG_EXPAND_SZ, data: %systemroot%) Notice: Use the caret symbol ( ^ ) inside the expand string[/quot] ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.12.2006, 11:25 |
|
||
|
Рег файл
|
|||
|---|---|---|---|
|
#18+
пример чтения из реестра в js: var WS=WScript.CreateObject("WScript.Shell"); WScript.Echo(WS.RegRead("HKCU\\Control Panel\\Keyboard\\KeyboardSpeed")); WScript.Echo(WS.RegRead("HKCU\\Control Panel\\Keyboard\\")); -- Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.12.2006, 11:51 |
|
||
|
Рег файл
|
|||
|---|---|---|---|
|
#18+
Ну раз уж начал тему: Вариант, предложенный rrrrrrrrrr перезаписывает значения в реестре. Чтобы этого не происходило, можно выкрутиться Код: plaintext 1. 2. 3. Код: plaintext 1. 2. 3. 4. 5. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.12.2006, 15:02 |
|
||
|
|

start [/forum/topic.php?fid=26&msg=34180696&tid=1508770]: |
0ms |
get settings: |
7ms |
get forum list: |
19ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
177ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
57ms |
get tp. blocked users: |
1ms |
| others: | 214ms |
| total: | 494ms |

| 0 / 0 |
