Current location - Quotes Website - Signature design - About computer commands and languages
About computer commands and languages

1. Because reg is a system command, it can be executed during operation. It is the same as cmd command.

And shl.RegWriter is just a function in a certain programming language. , it requires the support of the programming environment when running, and is not a system command

As for 2 and 3, I will give you the information and you can see it yourself

REG Operation [Parameter List]

Operation [ QUERY | ADD | DELETE | COPY |

SAVE | LOAD | UNLOAD | RESTORE |

COMPARE | EXPORT | IMPORT ]

Return code: ( EXCEPT REG COMPARE)

0 - Success

1 - Failure

To get help on an operation, type:

REG Operation /?

For example:

REG QUERY /?

REG ADD /?

REG DELETE /?

REG COPY /?

REG SAVE /?

REG RESTORE /?

REG LOAD /?

REG UNLOAD / ?

REG COMPARE /?

REG QUERY KeyName [/v ValueName | /ve] [/s]

KeyName [\Machine\]FullKey

Machine remote machine name - ignore the default value of the current machine

There are only HKLM and HKU on the remote machine

FullKey format is ROOTKEY\SubKey

ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]

SubKey The full name of the registry key under the selected ROOTKEY

/v Query a specific registry key

< p> ValueName The name of the value to be queried under the selected item

When omitted, all values ??under the item will be queried

/ve Query the default value or blank value name

/s Query all subkeys and values

For example:

REG QUERY HKLM\Software\Microsoft\ResKit /v Version

< p> Show registration?

REG ADD KeyName [/v ValueName | /ve] [/t Type] [/s Separator] [/d Data] [/f]

KeyName [\\Machine\]FullKey

The machine name of the remote machine - ignored and defaults to the current machine.

There are only HKLM and HKU on the remote machine.

FullKey ROOTKEY\SubKey

ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]

SubKey The full name of the registry key under the selected ROOTKEY

p>

/v The value name to be added under the selected item

/ve Add a blank value name for the registry key

/t RegKey data type< /p>

[ REG_SZ | REG_MULTI_SZ | REG_DWORD_BIG_ENDIAN |

REG_DWORD | REG_BINARY | REG_DWORD_LITTLE_ENDIAN |

REG_NONE |

/s specifies a character to be used as the delimiter in the REG_MULTI_SZ data string

If omitted, "\0" is used as the delimiter

/d Data to be assigned to the added registry ValueName

/f Forcefully overwrite existing registry keys without prompting

For example:

REG ADD \\ABC\HKLM\Software\MyCo

Adds a registry key HKLM\Software\MyCo on remote machine ABC

REG ADD HKLM\Software\ MyCo /v Data /t REG_BINARY /d fe340ead

Add a value (name: Data, type: REG_BINARY, data: fe340ead)

REG ADD HKLM\Software\MyCo /v MRU /t REG_MULTI_SZ /d fax\0mail

Add a value (name: MRU, type: REG_MUTLI_SZ, data: fax\0

REG DELETE KeyName [/v ValueName | /ve | /va] [/f]

KeyName [\\Machine\]FullKey

Machine remote machine name - ignore the default value of the current machine

On the remote machine Only HKLM and HKU

FullKey ROOTKEY\SubKey

ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]

SubKey The registry key under the selected ROOTKEY The full name of

ValueName The name of the value to be deleted under the selected item

When omitted, all subkeys and values ??under the item will be deleted

/ve Delete the value of the blank value name

/va Delete all values ??under the item

/f Forced deletion without prompting

For example :

REG DELETE HKLM\Software\MyCo\MyApp\Timeout

Delete registry key T

REG COPY KeyName1 KeyName2 [/s] [/f]

KeyName [\\Machine\]FullKey

Machine remote machine name - ignore the default value of the current machine

There are only HKLM and HKU on the remote machine

FullKey ROOTKEY\SubKey

ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]

SubKey The full name of the registry key under the selected ROOTKEY

/s Copy all subkeys and values

/f Force copy without prompts

For example:

REG COPY HKLM\Software\MyCo\MyApp HKLM\Software\MyCo\SaveMyApp /s

Copy all subkeys and values ??under the registry key MyApp to the registry key SaveMyApp

REG COPY \\ZODIAC\HKLM\Software \MyCo HKLM

REG SAVE KeyName FileName

KeyName ROOTKEY\SubKey

ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]

SubKey The full name of the registry key under the selected ROOTKEY

FileName The name of the disk file to be saved. If no path is specified,

the file will be created in the current folder of the calling process

For example:

REG SAVE HKLM\Software\MyCo\MyApp AppB

REG RESTORE KeyName FileName

KeyName ROOTKEY\SubKey (local machine only)

ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]

SubKey The full name of the registry key to which the hive file is to be restored.

Overwrite the value and subkeys of an existing key

FileName The name of the hive file to be restored

You must use REG SAVE to create this file

For example:

REG RESTORE HKLM\Software\Microsof

REG LOAD KeyName FileName

KeyName ROOTKEY\SubKey (local machine only)

ROOTKEY [ HKLM | HKU ]

SubKey The name of the registry key into which the hive file is to be loaded. Create a new registry key

FileName The name of the hive file to load

You must use REG SAVE to create this file

For example:

REG LOAD HKLM\TempHi

REG UNLOAD KeyName

KeyName ROOTKEY\SubKey (only for the local machine)

ROOTKEY [ HKLM | HKU ]< /p>

SubKey The registry key name of the hive to be unloaded

For example:

REG UNLOAD HKLM\TempHive

?

REG COMPARE KeyName1 KeyName2 [/v ValueName | /ve] [Output] [/s]

KeyName [\\Machine\]FullKey

Machine remote machine name - omitted The default value of the current machine

There are only HKLM and HKU on the remote machine

FullKey ROOTKEY\SubKey

If FullKey2 is not specified, FullKey2 is the same as FullKey1

ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]

SubKey The full name of the registry key under the selected ROOTKEY

ValueName The key under the selected registry key The name of the value to compare

When omitted, all values ??under this item will be compared

/ve Compares blank values ??The value of the name

/s Compares all subkeys and values

Output [/oa | /od | /os | /on]

When omitted, only different results are displayed

< p> /oa displays all differences and matching results

/od displays only differences and matching results

/os displays only matching results

/on does not display results< /p>

Return code:

0 - Success, the comparison results are the same

1 - Failure

2 - Success, the comparison results are different< /p>

For example:

REG COMPARE HKLM\Software\MyCo\MyApp HKLM\Software\MyCo\SaveMyApp

Compare all values ??under the registry key MyApp with SaveMyApp

REG COMPARE HKLM\Software\MyCo HKLM

REG EXPORT KeyName FileName

Keyname ROOTKEY\SubKey (local machine only)

ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]

SubKey The full name of the registry key under the selected ROOTKEY

FileName The name of the disk file to be exported

For example:

REG EXPORT HKLM\Software\MyCo\MyApp AppBkUp.reg

Change the registry key MyApp

REG IMPORT FileName

FileName The name of the disk file to be imported (only for local machine)

For example:

REG IMPORT AppBkUp.reg

From file A