home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 December / 12_02.iso / software / regscrubxp / setup.exe / {sys} / reg.exe / string.txt next >
Encoding:
Text File  |  2002-09-03  |  10.3 KB  |  41 lines

  1. 1    Copyright (C) Microsoft Corp. 1981-2001.  All rights reserved
  2. \n
  3. \n
  4. 2    REG Operation [Parameter List]
  5. \n
  6. \n  Operation  [ QUERY   | ADD    | DELETE  | COPY    |
  7. \n               SAVE    | LOAD   | UNLOAD  | RESTORE |
  8. \n               COMPARE | EXPORT | IMPORT ]
  9. \n
  10. \nReturn Code: (Except of REG COMPARE)
  11. \n
  12. \n  0 - Succussful
  13. \n  1 - Failed
  14. \n
  15. \nFor help on a specific operation type:
  16. \n
  17. \n  REG Operation /?
  18. \n
  19. \nExamples:
  20. \n
  21. \n  REG QUERY /?
  22. \n  REG ADD /?
  23. \n  REG DELETE /?
  24. \n  REG COPY /?
  25. \n  REG SAVE /?
  26. \n  REG RESTORE /?
  27. \n  REG LOAD /?
  28. \n  REG UNLOAD /?
  29. \n  REG COMPARE /?
  30. \n  REG EXPORT /?
  31. \n  REG IMPORT /?
  32. \n
  33. 3    REG QUERY KeyName [/v ValueName | /ve] [/s]
  34. \n
  35. \n  KeyName    [\Machine\]FullKey
  36. \n    Machine - Name of remote machine,  omitting defaults to the current machine
  37. \n         Only HKLM and HKU are available on remote machines
  38. \n    FullKey  - in the form of ROOTKEY\SubKey name
  39. \n         ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
  40. \n         SubKey  - The full name of a registry key under the selected ROOTKEY
  41. \n  /v  query for a specific registry key   
  42. \n         ValueName  - The name, under the selected Key, to query
  43. \n         if omitted, all values under the Key are queried
  44. \n  /ve query for the default value or empty value name <no name>
  45. \n  /s  queries all subkeys and values
  46. \n
  47. \nExamples:
  48. \n
  49. \n  REG QUERY HKLM\Software\Microsoft\ResKit /v Version
  50. \n    Displays the value of the registry value Version
  51. \n
  52. \n  REG QUERY HKLM\Software\Microsoft\ResKit\Nt\Setup /s
  53. \n    Displays all subkeys and values under the registry key Setup
  54. \n
  55. 4    REG ADD KeyName [/v ValueName | /ve] [/t Type] [/s Separator] [/d Data] [/f]
  56. \n
  57. \n  KeyName  [\\Machine\]FullKey
  58. \n           Machine  Name of remote machine - omitting defaults to the current
  59. \n                    machine Only HKLM and HKU are available on remote machines
  60. \n           FullKey  ROOTKEY\SubKey
  61. \n           ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
  62. \n           SubKey   The full name of a registry key under the selected ROOTKEY
  63. \n
  64. \n  /v       The value name, under the selected Key, to add
  65. \n
  66. \n  /ve      adds an empty value name <no name> for the key
  67. \n
  68. \n  /t       RegKey data types
  69. \n           [ REG_SZ    | REG_MULTI_SZ  | REG_DWORD_BIG_ENDIAN    |
  70. \n             REG_DWORD | REG_BINARY    | REG_DWORD_LITTLE_ENDIAN |
  71. \n             REG_NONE  | REG_EXPAND_SZ ]
  72. \n           If omitted, REG_SZ is assumed
  73. \n
  74. \n  /s       Specify one charactor that you use as the separator in your data
  75. \n           string for REG_MULTI_SZ. If omitted, use "\0" as the separator
  76. \n
  77. \n
  78. 5      /d       The data to assign to the registry ValueName being added
  79. \n
  80. \n  /f       Force overwriting the existing registry entry without prompt
  81. \n
  82. \nExamples:
  83. \n
  84. \n  REG ADD \\ABC\HKLM\Software\MyCo
  85. \n    Adds a key HKLM\Software\MyCo on remote machine ABC
  86. \n
  87. \n  REG ADD HKLM\Software\MyCo /v Data /t REG_BINARY /d fe340ead
  88. \n    Adds a value (name: Data, type: REG_BINARY, data: fe340ead)
  89. \n
  90. \n  REG ADD HKLM\Software\MyCo /v MRU /t REG_MULTI_SZ /d fax\0mail
  91. \n    Adds a value (name: MRU, type: REG_MUTLI_SZ, data: fax\0mail\0\0)
  92. \n
  93. \n  REG ADD HKLM\Software\MyCo /v Path /t REG_EXPAND_SZ /d %%systemroot%%
  94. \n    Adds a value (name: Path, type: REG_EXPAND_SZ, data: %systemroot%)
  95. \n    Notice:  Use the double percentage ( %% ) inside the expand string
  96. \n
  97. \n
  98. 6    REG DELETE KeyName [/v ValueName | /ve | /va] [/f]
  99. \n
  100. \n  KeyName    [\\Machine\]FullKey
  101. \n    Machine  Name of remote machine - omitting defaults to the current machine
  102. \n             Only HKLM and HKU are available on remote machines
  103. \n    FullKey  ROOTKEY\SubKey
  104. \n    ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
  105. \n    SubKey   The full name of a registry key under the selected ROOTKEY
  106. \n  ValueName  The value name, under the selected Key, to delete
  107. \n             When omitted, all subkeys and values under the Key are deleted
  108. \n  /ve        delete the value of empty value name <no name>
  109. \n  /va        delete all values under this key
  110. \n  /f         Forces the deletion without propmt
  111. \n
  112. \nExamples:
  113. \n
  114. \n  REG DELETE HKLM\Software\MyCo\MyApp\Timeout
  115. \n    Deletes the registry key Timeout and its all subkeys and values
  116. \n
  117. \n  REG DELETE \\ZODIAC\HKLM\Software\MyCo /v MTU
  118. \n    Deletes the registry value MTU under MyCo on ZODIAC
  119. \n
  120. 7    REG COPY KeyName1 KeyName2 [/s] [/f]
  121. \n
  122. \n  KeyName    [\\Machine\]FullKey
  123. \n    Machine  Name of remote machine - omitting defaults to the current machine
  124. \n             Only HKLM and HKU are available on remote machines
  125. \n    FullKey  ROOTKEY\SubKey
  126. \n    ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
  127. \n    SubKey   The full name of a registry key under the selected ROOTKEY
  128. \n  /s         Copies all subkeys and values
  129. \n  /f         Forces the copy without propmt
  130. \n
  131. \nExamples:
  132. \n
  133. \n  REG COPY HKLM\Software\MyCo\MyApp HKLM\Software\MyCo\SaveMyApp /s
  134. \n    Copies all subkeys and values under the key MyApp to the key SaveMyApp
  135. \n
  136. \n  REG COPY \\ZODIAC\HKLM\Software\MyCo HKLM\Software\MyCo1
  137. \n    Copies all values under the key MyCo on ZODIAC to the key MyCo1
  138. \n    on the current machine
  139. \n
  140. 8    REG SAVE KeyName FileName
  141. \n
  142. \n  KeyName    ROOTKEY\SubKey
  143. \n    ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
  144. \n    SubKey   The full name of a registry key under the selected ROOTKEY
  145. \n  FileName   The name of the disk file to save. If no path is specified, the
  146. \n             file is created in the current folder of the calling process
  147. \n
  148. \nExamples:
  149. \n
  150. \n  REG SAVE HKLM\Software\MyCo\MyApp AppBkUp.hiv
  151. \n    Saves the hive MyApp to the file AppBkUp.hiv in the current folder
  152. \n
  153. 9    REG RESTORE KeyName FileName
  154. \n
  155. \n  KeyName    ROOTKEY\SubKey (local machine only)
  156. \n    ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
  157. \n    SubKey   The full name of a registry key to restore the hive file into.
  158. \n             Overwriting the existing key's values and subkeys
  159. \n  FileName   The name of the hive file to restore
  160. \n             You must use REG SAVE to create this file
  161. \n
  162. \nExamples:
  163. \n
  164. \n  REG RESTORE HKLM\Software\Microsoft\ResKit NTRKBkUp.hiv
  165. \n    Restores the file NTRKBkUp.hiv overwriting the key ResKit
  166. \n
  167. 10    REG LOAD KeyName FileName
  168. \n
  169. \n  KeyName    ROOTKEY\SubKey (local machine only)
  170. \n    ROOTKEY  [ HKLM | HKU ]
  171. \n    SubKey   The key name to load the hive file into. Creating a new key
  172. \n  FileName   The name of the hive file to load
  173. \n             You must use REG SAVE to create this file
  174. \n
  175. \nExamples:
  176. \n
  177. \n  REG LOAD HKLM\TempHive TempHive.hiv
  178. \n    Loads the file TempHive.hiv to the Key HKLM\TempHive
  179. \n
  180. 11    REG UNLOAD KeyName
  181. \n
  182. \n  KeyName    ROOTKEY\SubKey (local machine only)
  183. \n    ROOTKEY  [ HKLM | HKU ]
  184. \n    SubKey   The key name of the hive to unload
  185. \n
  186. \nExamples:
  187. \n
  188. \n  REG UNLOAD HKLM\TempHive
  189. \n    Unloads the hive TempHive in HKLM
  190. \n
  191. 12    REG COMPARE KeyName1 KeyName2 [/v ValueName | /ve] [Output] [/s]
  192. \n
  193. \n  KeyName    [\\Machine\]FullKey
  194. \n    Machine  Name of remote machine - omitting defaults to the current machine
  195. \n             Only HKLM and HKU are available on remote machines
  196. \n    FullKey  ROOTKEY\SubKey
  197. \n             If FullKey2 is not specified, FullKey2 is the same as FullKey1
  198. \n    ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
  199. \n    SubKey   The full name of a registry key under the selected ROOTKEY
  200. \n  ValueName  The value name, under the selected Key, to compare
  201. \n             When omitted, all values under the Key are compared
  202. \n  /ve        compare the value of empty value name <no name>
  203. \n  /s         Compare all subkeys and values
  204. \n  Output     [/oa | /od | /os | /on]
  205. \n             When omitted, output only differences
  206. \n    /oa      Output all of differences and matches
  207. \n    /od      Output only differences
  208. \n    /os      Output only matches
  209. \n    /on      No output
  210. \n
  211. \n
  212. 13    Return Code:
  213. \n
  214. \n  0 - Succussful, the result compared is identical
  215. \n  1 - Failed
  216. \n  2 - Successful, the result compared is different
  217. \n
  218. \nExamples:
  219. \n
  220. \n  REG COMPARE HKLM\Software\MyCo\MyApp HKLM\Software\MyCo\SaveMyApp
  221. \n    Compares all values under the key MyApp with SaveMyApp
  222. \n
  223. \n  REG COMPARE HKLM\Software\MyCo HKLM\Software\MyCo1 /v Version
  224. \n    Compares the value Version under the key MyCo and MyCo1
  225. \n
  226. \n  REG COMPARE \\ZODIAC\HKLM\Software\MyCo \\. /s
  227. \n    Compares all subkeys and values under HKLM\Software\MyCo on ZODIAC
  228. \n    with the same key on the current machine
  229. \n
  230. 14    REG EXPORT KeyName FileName
  231. \n
  232. \n  Keyname    ROOTKEY\SubKey (local machine only)
  233. \n    ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
  234. \n    SubKey   The full name of a registry key under the selected ROOTKEY
  235. \n  FileName   The name of the disk file to export
  236. \n
  237. \nExamples:
  238. \n
  239. \n  REG EXPORT HKLM\Software\MyCo\MyApp AppBkUp.reg
  240. \n    Exports all subkeys and values of the key MyApp to the file AppBkUp.reg
  241. \n
  242. 15    REG IMPORT FileName
  243. \n
  244. \n  FileName  The name of the disk file to import (local machine only)
  245. \n
  246. \nExamples:
  247. \n
  248. \n  REG IMPORT AppBkUp.reg
  249. \n    Imports registry entrys from the file AppBkUp.reg
  250. \n
  251. \n
  252. 16    Registry Editor
  253. 39    
  254. \nThe operation completed successfully
  255. \n
  256. 40    
  257. \nError:  Bad operation.  Use /? for help
  258. \n
  259. 41    
  260. \nError:  Too many command-line parameters
  261. \n
  262. 42    
  263. \nError:  Too few command-line parameters
  264. \n
  265. 43    
  266. \nError:  Invalid command-line parameters
  267. \n
  268. 44    
  269. \nError:  A remote machine was specified, the root key must be HKLM or HKU.
  270. \n
  271. 45    
  272. \nError:  The root key must be HKLM or HKU for LOAD/UNLOAD.
  273. \n
  274. 46    
  275. \nError:  The registry entry cannot be copied onto itself
  276. \n
  277. 47    
  278. \nError:  The registry entry is being compared with itself
  279. \n
  280. 48    
  281. \nError:  Invalid key name
  282. \n
  283. 49    
  284. \nError:  Invalid file format
  285. \n
  286. 50    
  287. \nError:  Local only, it is not remotable
  288. \n
  289. 51    
  290. \nError:  The system was unable to find the specified registry key or value
  291. \n
  292. 128    Information in %1 has been successfully entered into the registry.
  293. 129    Cannot import %1: Error opening the file. There may be a disk or file system error.
  294. 130    Cannot import %1: Error reading the file. There may be a disk error or the file may be corrupt.
  295. 131    Cannot import %1: Error accessing the registry.
  296. 132    Cannot import %1: Error writing to the registry.
  297. 133    Cannot import %1: The specified file is not a registry script. You can import only registry files.
  298. 134    Cannot import %1: The specified file is not intended for use with this version of Windows.
  299. 141    Cannot export %1: Error writing the file. There may be a disk or file system error.
  300. 142    Console Registry Tool for Windows - version 3.0
  301. 143    Value %s exists. Overwrite (Yes/No/All)?
  302. 144    <NO NAME>
  303.