CodePudding user response:
C: & gt; reg/?REG Operation [Parameter List]
Operation [QUERY | ADD | DELETE | COPY |
The SAVE | LOAD | UNLOAD | RESTORE |
COMPARE | EXPORT | IMPORT]
Return code: (with the exception of REG COMPARE)
0 - success
1 - failure
To get help about an action, please type:
REG Operation/?
For example:
REG QUERY/?
REG the ADD/?
REG the DELETE/?
REG the COPY/?
REG the SAVE/?
REG RESTORE/?
REG the LOAD/?
REG the UNLOAD/?
REG the COMPARE/?
REG the EXPORT/?
REG the IMPORT/?
CodePudding user response:
C: \ & gt; reg delete/?REG the DELETE KeyName [/v ValueName | | of ve/va] [/f]
KeyName [\ \ Machine \] FullKey
Machine remote Machine name - ignore the default value of the current Machine,
On a remote machine in registry key HKLM and the city, only
FullKey ROOTKEY \ SubKey
In registry key HKLM | ROOTKEY [HKCU | HKCR | to the | HKCC]
SubKey selected ROOTKEY registry entries under the name,
ValueName under the option to delete the name of the value of the
Omitted, all under the items and the value will be deleted,
/ve delete blank value name value (the default),
/va delete all values under the,
/f without prompt forcibly removed,
For example:
REG in registry key HKLM \ Software \ DELETE MyCo \ MyApp \ Timeout
Delete registry keys Timeout and all its children and value
REG the DELETE the information in registry key HKLM \ Software \ \ over \ \ MyCo/v MTU
Delete the ZODIAC on MyCo under registry entries MTU
CodePudding user response:
Try to use registry cleaning tools,I am afraid, if not, just write the code for processing,
Pay attention to the "characteristics", judge logic must be tight, otherwise it may cause mistaken delete,