home *** CD-ROM | disk | FTP | other *** search
- 1 Copyright (C) Microsoft Corp. 1981-2001. All rights reserved
- \n
- \n
- 2 REG Operation [Parameter List]
- \n
- \n Operation [ QUERY | ADD | DELETE | COPY |
- \n SAVE | LOAD | UNLOAD | RESTORE |
- \n COMPARE | EXPORT | IMPORT ]
- \n
- \nReturn Code: (Except of REG COMPARE)
- \n
- \n 0 - Succussful
- \n 1 - Failed
- \n
- \nFor help on a specific operation type:
- \n
- \n REG Operation /?
- \n
- \nExamples:
- \n
- \n REG QUERY /?
- \n REG ADD /?
- \n REG DELETE /?
- \n REG COPY /?
- \n REG SAVE /?
- \n REG RESTORE /?
- \n REG LOAD /?
- \n REG UNLOAD /?
- \n REG COMPARE /?
- \n REG EXPORT /?
- \n REG IMPORT /?
- \n
- 3 REG QUERY KeyName [/v ValueName | /ve] [/s]
- \n
- \n KeyName [\Machine\]FullKey
- \n Machine - Name of remote machine, omitting defaults to the current machine
- \n Only HKLM and HKU are available on remote machines
- \n FullKey - in the form of ROOTKEY\SubKey name
- \n ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
- \n SubKey - The full name of a registry key under the selected ROOTKEY
- \n /v query for a specific registry key
- \n ValueName - The name, under the selected Key, to query
- \n if omitted, all values under the Key are queried
- \n /ve query for the default value or empty value name <no name>
- \n /s queries all subkeys and values
- \n
- \nExamples:
- \n
- \n REG QUERY HKLM\Software\Microsoft\ResKit /v Version
- \n Displays the value of the registry value Version
- \n
- \n REG QUERY HKLM\Software\Microsoft\ResKit\Nt\Setup /s
- \n Displays all subkeys and values under the registry key Setup
- \n
- 4 REG ADD KeyName [/v ValueName | /ve] [/t Type] [/s Separator] [/d Data] [/f]
- \n
- \n KeyName [\\Machine\]FullKey
- \n Machine Name of remote machine - omitting defaults to the current
- \n machine Only HKLM and HKU are available on remote machines
- \n FullKey ROOTKEY\SubKey
- \n ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
- \n SubKey The full name of a registry key under the selected ROOTKEY
- \n
- \n /v The value name, under the selected Key, to add
- \n
- \n /ve adds an empty value name <no name> for the key
- \n
- \n /t RegKey data types
- \n [ REG_SZ | REG_MULTI_SZ | REG_DWORD_BIG_ENDIAN |
- \n REG_DWORD | REG_BINARY | REG_DWORD_LITTLE_ENDIAN |
- \n REG_NONE | REG_EXPAND_SZ ]
- \n If omitted, REG_SZ is assumed
- \n
- \n /s Specify one charactor that you use as the separator in your data
- \n string for REG_MULTI_SZ. If omitted, use "\0" as the separator
- \n
- \n
- 5 /d The data to assign to the registry ValueName being added
- \n
- \n /f Force overwriting the existing registry entry without prompt
- \n
- \nExamples:
- \n
- \n REG ADD \\ABC\HKLM\Software\MyCo
- \n Adds a key HKLM\Software\MyCo on remote machine ABC
- \n
- \n REG ADD HKLM\Software\MyCo /v Data /t REG_BINARY /d fe340ead
- \n Adds a value (name: Data, type: REG_BINARY, data: fe340ead)
- \n
- \n REG ADD HKLM\Software\MyCo /v MRU /t REG_MULTI_SZ /d fax\0mail
- \n Adds a value (name: MRU, type: REG_MUTLI_SZ, data: fax\0mail\0\0)
- \n
- \n REG ADD HKLM\Software\MyCo /v Path /t REG_EXPAND_SZ /d %%systemroot%%
- \n Adds a value (name: Path, type: REG_EXPAND_SZ, data: %systemroot%)
- \n Notice: Use the double percentage ( %% ) inside the expand string
- \n
- \n
- 6 REG DELETE KeyName [/v ValueName | /ve | /va] [/f]
- \n
- \n KeyName [\\Machine\]FullKey
- \n Machine Name of remote machine - omitting defaults to the current machine
- \n Only HKLM and HKU are available on remote machines
- \n FullKey ROOTKEY\SubKey
- \n ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
- \n SubKey The full name of a registry key under the selected ROOTKEY
- \n ValueName The value name, under the selected Key, to delete
- \n When omitted, all subkeys and values under the Key are deleted
- \n /ve delete the value of empty value name <no name>
- \n /va delete all values under this key
- \n /f Forces the deletion without propmt
- \n
- \nExamples:
- \n
- \n REG DELETE HKLM\Software\MyCo\MyApp\Timeout
- \n Deletes the registry key Timeout and its all subkeys and values
- \n
- \n REG DELETE \\ZODIAC\HKLM\Software\MyCo /v MTU
- \n Deletes the registry value MTU under MyCo on ZODIAC
- \n
- 7 REG COPY KeyName1 KeyName2 [/s] [/f]
- \n
- \n KeyName [\\Machine\]FullKey
- \n Machine Name of remote machine - omitting defaults to the current machine
- \n Only HKLM and HKU are available on remote machines
- \n FullKey ROOTKEY\SubKey
- \n ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
- \n SubKey The full name of a registry key under the selected ROOTKEY
- \n /s Copies all subkeys and values
- \n /f Forces the copy without propmt
- \n
- \nExamples:
- \n
- \n REG COPY HKLM\Software\MyCo\MyApp HKLM\Software\MyCo\SaveMyApp /s
- \n Copies all subkeys and values under the key MyApp to the key SaveMyApp
- \n
- \n REG COPY \\ZODIAC\HKLM\Software\MyCo HKLM\Software\MyCo1
- \n Copies all values under the key MyCo on ZODIAC to the key MyCo1
- \n on the current machine
- \n
- 8 REG SAVE KeyName FileName
- \n
- \n KeyName ROOTKEY\SubKey
- \n ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
- \n SubKey The full name of a registry key under the selected ROOTKEY
- \n FileName The name of the disk file to save. If no path is specified, the
- \n file is created in the current folder of the calling process
- \n
- \nExamples:
- \n
- \n REG SAVE HKLM\Software\MyCo\MyApp AppBkUp.hiv
- \n Saves the hive MyApp to the file AppBkUp.hiv in the current folder
- \n
- 9 REG RESTORE KeyName FileName
- \n
- \n KeyName ROOTKEY\SubKey (local machine only)
- \n ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
- \n SubKey The full name of a registry key to restore the hive file into.
- \n Overwriting the existing key's values and subkeys
- \n FileName The name of the hive file to restore
- \n You must use REG SAVE to create this file
- \n
- \nExamples:
- \n
- \n REG RESTORE HKLM\Software\Microsoft\ResKit NTRKBkUp.hiv
- \n Restores the file NTRKBkUp.hiv overwriting the key ResKit
- \n
- 10 REG LOAD KeyName FileName
- \n
- \n KeyName ROOTKEY\SubKey (local machine only)
- \n ROOTKEY [ HKLM | HKU ]
- \n SubKey The key name to load the hive file into. Creating a new key
- \n FileName The name of the hive file to load
- \n You must use REG SAVE to create this file
- \n
- \nExamples:
- \n
- \n REG LOAD HKLM\TempHive TempHive.hiv
- \n Loads the file TempHive.hiv to the Key HKLM\TempHive
- \n
- 11 REG UNLOAD KeyName
- \n
- \n KeyName ROOTKEY\SubKey (local machine only)
- \n ROOTKEY [ HKLM | HKU ]
- \n SubKey The key name of the hive to unload
- \n
- \nExamples:
- \n
- \n REG UNLOAD HKLM\TempHive
- \n Unloads the hive TempHive in HKLM
- \n
- 12 REG COMPARE KeyName1 KeyName2 [/v ValueName | /ve] [Output] [/s]
- \n
- \n KeyName [\\Machine\]FullKey
- \n Machine Name of remote machine - omitting defaults to the current machine
- \n Only HKLM and HKU are available on remote machines
- \n FullKey ROOTKEY\SubKey
- \n If FullKey2 is not specified, FullKey2 is the same as FullKey1
- \n ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
- \n SubKey The full name of a registry key under the selected ROOTKEY
- \n ValueName The value name, under the selected Key, to compare
- \n When omitted, all values under the Key are compared
- \n /ve compare the value of empty value name <no name>
- \n /s Compare all subkeys and values
- \n Output [/oa | /od | /os | /on]
- \n When omitted, output only differences
- \n /oa Output all of differences and matches
- \n /od Output only differences
- \n /os Output only matches
- \n /on No output
- \n
- \n
- 13 Return Code:
- \n
- \n 0 - Succussful, the result compared is identical
- \n 1 - Failed
- \n 2 - Successful, the result compared is different
- \n
- \nExamples:
- \n
- \n REG COMPARE HKLM\Software\MyCo\MyApp HKLM\Software\MyCo\SaveMyApp
- \n Compares all values under the key MyApp with SaveMyApp
- \n
- \n REG COMPARE HKLM\Software\MyCo HKLM\Software\MyCo1 /v Version
- \n Compares the value Version under the key MyCo and MyCo1
- \n
- \n REG COMPARE \\ZODIAC\HKLM\Software\MyCo \\. /s
- \n Compares all subkeys and values under HKLM\Software\MyCo on ZODIAC
- \n with the same key on the current machine
- \n
- 14 REG EXPORT KeyName FileName
- \n
- \n Keyname ROOTKEY\SubKey (local machine only)
- \n ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
- \n SubKey The full name of a registry key under the selected ROOTKEY
- \n FileName The name of the disk file to export
- \n
- \nExamples:
- \n
- \n REG EXPORT HKLM\Software\MyCo\MyApp AppBkUp.reg
- \n Exports all subkeys and values of the key MyApp to the file AppBkUp.reg
- \n
- 15 REG IMPORT FileName
- \n
- \n FileName The name of the disk file to import (local machine only)
- \n
- \nExamples:
- \n
- \n REG IMPORT AppBkUp.reg
- \n Imports registry entrys from the file AppBkUp.reg
- \n
- \n
- 16 Registry Editor
- 39
- \nThe operation completed successfully
- \n
- 40
- \nError: Bad operation. Use /? for help
- \n
- 41
- \nError: Too many command-line parameters
- \n
- 42
- \nError: Too few command-line parameters
- \n
- 43
- \nError: Invalid command-line parameters
- \n
- 44
- \nError: A remote machine was specified, the root key must be HKLM or HKU.
- \n
- 45
- \nError: The root key must be HKLM or HKU for LOAD/UNLOAD.
- \n
- 46
- \nError: The registry entry cannot be copied onto itself
- \n
- 47
- \nError: The registry entry is being compared with itself
- \n
- 48
- \nError: Invalid key name
- \n
- 49
- \nError: Invalid file format
- \n
- 50
- \nError: Local only, it is not remotable
- \n
- 51
- \nError: The system was unable to find the specified registry key or value
- \n
- 128 Information in %1 has been successfully entered into the registry.
- 129 Cannot import %1: Error opening the file. There may be a disk or file system error.
- 130 Cannot import %1: Error reading the file. There may be a disk error or the file may be corrupt.
- 131 Cannot import %1: Error accessing the registry.
- 132 Cannot import %1: Error writing to the registry.
- 133 Cannot import %1: The specified file is not a registry script. You can import only registry files.
- 134 Cannot import %1: The specified file is not intended for use with this version of Windows.
- 141 Cannot export %1: Error writing the file. There may be a disk or file system error.
- 142 Console Registry Tool for Windows - version 3.0
- 143 Value %s exists. Overwrite (Yes/No/All)?
- 144 <NO NAME>
-