|
Action |
Saves a registry key (including its subkeys and value entries) to a file.
|
Syntax |
SAVEKEY ("subkey", "file name")
|
Parameters |
Subkey
Identifies the subkey you want to save.
File name
Identifies the file in which to save the information.
|
Remarks |
When this function runs, the destination file is overwritten without warning.
On Windows NT, running SAVEKEY requires Backup and Restore privileges.
|
Returns |
|
0 |
Subkey saved |
|
Error code |
Function failed |
|
Example |
$ReturnCode = SaveKey("HKEY_CURRENT_USER\EZReg", "c:\temp\tst.reg")
If $ReturnCode = 0
?
"Key saved...."
Endif