Forrest logo
back to the reg tool

reg-copy:tldr:0f7f9

reg-copy: Copy a registry key recursively to a new registry location.
$ reg copy ${old_key_name} ${new_key_name} /s
try on your machine

This command is used to copy a registry key from one location to another in a Windows operating system.

Here's a breakdown of the command:

  • reg copy: This specifies the command to copy a registry key.

  • ${old_key_name}: This is the name of the existing registry key that you want to copy. It is enclosed in curly braces, indicating that it is a variable and its value will be substituted.

  • ${new_key_name}: This is the name of the new registry key that you want to create by copying the old key. Like the previous variable, it is enclosed in curly braces.

  • /s: This is an optional switch that tells the command to copy all subkeys and values within the specified key. Including this switch ensures that the entire key hierarchy is copied.

By executing this command, the registry key with the name ${old_key_name} and all its subkeys and values will be copied to a new key named ${new_key_name}.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the reg tool