Please enable JavaScript to view this site.

Take Command / TCC Help v. 27

@REGCOPYKEY[HKEY...\key, targetkey] : Recursively copy the specified key and all of its subkeys to the target key. Returns 1 if the key was copied, 0 otherwise. The key names must be enclosed in double quotes if  they contain any separator characters (space, comma, or tab).

 

Both keys must be in the same root (HKCR, HKCU, HKLM, HKU, or HKCC).

 

If the key name begins with \\machinename, @REGCOPYKEY opens the registry on a remote machine. The remote registry service must be running on the remote machine, and you must have access and permissions. The HKEY parameter can be one of the following keys:

 

HKEY_CLASSES_ROOT (or HKCR)

HKEY_CURRENT_CONFIG (or HKCC)

HKEY_CURRENT_USER (or HKCU)

HKEY_LOCAL_MACHINE (or HKLM)

HKEY_PERFORMANCE_DATA (or HKPD)

HKEY_USERS (or HKU)

 

Note: If you are copying a very large tree, this function can take several minutes to finish. (This is a Windows issue, not TCC.)

 

See @REGCREATE for information on the format of the key name.