LoadKey( )
| Action: | Loads
a registry key (including its subkeys and values) from a file. |
||||
| Syntax: |
LoadKey
("subkey", "file
name") |
||||
| Parameters: |
Subkey
File name
|
||||
| Remarks: |
On
Windows NT, using LOADKEY requires Backup and Restore privileges. |
||||
| Caution: |
LOADKEY
imports information into the registry and overwrites any existing subkey. This
replaces all the subkeys and values that may already exist in the subkey you are
loading. Any existing values and subkeys are lost. |
||||
| Returns: |
|
||||
| See Also: |
LoadHive(
), SaveKey( ), UnloadHive(
) |
||||
| Example: |
$ReturnCode
= LoadKey("HKEY_CURRENT_USER\EZReg",
"c:\temp\tst.reg") |