Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

SaveKey( )

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.

0 Subkey saved
Error code Function failed  
See Also: LoadKey( )

$ReturnCode = SaveKey("HKEY_CURRENT_USER\EZReg", "c:\temp\tst.reg")
If $ReturnCode = 0
  ? "Key saved...."