alossenko
Понедельник, 05 Мая 2003, 15:56
вот коечто нашел на английском

The Console Registry tool for Windows, which can be launched by typing "reg.exe" at the command line, allows you to add, change and display registry keys and values directly from the command line. NOTE: This is a different utility than the Registry Manipulation Utility (reg.exe) that was included with the Windows NT Server Version 4.0 Resource Kit, Supplement Two.
The cool feature of this utility is its ability to manipulate the registry in a number of different ways. For example, you have the option of exporting a key or set of keys from the registry to a .REG file. You also have the ability to import a .REG file, which will overwrite and/or add the keys and values listed in the .REG file directly to your registry. But what if you just want to change a value of an existing key? You can do this directly from the command line without the use of .REG files by typing a command similar to the following:
REG QUERY HKLM\Software\Microsoft\Windows\CurrentVersion\Run
This command gives you a list of all of the keys and values under the Run section of this portion of the registry. If you want to change a value, you type a command similar to the following:
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v DMU /d “c:\dmu\dmu.exe”
When you do a REG ADD and the value already exists, you will be prompted to verify whether you want to overwrite the value or not. In this example, DMU already existed, but since my goal was to modify the existing value, I said yes to the prompt and it modified the existing value for DMU.
To find out more about the options available to you for this utility type "reg /?" at the command prompt.