@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 you are running a 32-bit version of TCC-RT in a 64-bit version of Windows, you can access the 64-bit registry instead of the 32-bit registry by appending "_64" to the HKEY name.

 

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-RT.)

 

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