@REGSETENV[HKEY...\subkey\value,type,data] : The same as @REGSET, but a broadcast message is sent to all applications when the change is made, so that any application monitoring such messages can respond to the change immediately if it is designed to do so. @REGSETENV returns 0 if the value was written or the Windows error number if an error occurred.
If you are running 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, @REGSETENV 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: Remember to use quotes around any entry containing spaces or commas!