Microsoft SDK for Java

replace

This method of the RegKey class replaces the file supporting a key and all its subkeys with another file. The next time the system is started, the key and subkey values are stored in the new file.

Syntax

public void replace(String subKey, String newFile, String oldFile);

Parameters

subKey The subkey, whose values are stored in the new file.
newFile The name of the new file.
oldFile The name of the old file.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.