Previous Topic: ApplyMappedSubKeyNext Topic: ApplySubKeys


ApplyMappedValue

ApplyMappedValue

Applies a registry key value or an .ini file value from the source to the destination computer. If the value name or value is a directory path, it is mapped to the appropriate path. The command can take six parameters. Only values that were stored mapped can be applied mapped.

First parameter:

The Key path (string value)

Second parameter:

The Value name (string value)

Note: If the value is the default value, the second parameter should be NULL ("")

Third parameter:

The new Key path (string value)

Note: If not moving the value to new location, the third parameter should be NULL ("")

Fourth parameter:

The delimiter (string value)

Fifth parameter:

Shortpaths indicator (Boolean value)

Sixth parameter:

If moving, the new Value name (string value)

Usage:
ApplyMappedValue(<Key path>, <Value name>, [new Key path], [delimiter], [shortpaths], [new Value name]);
Examples:
ApplyMappedValue("HKCU\\Software\\Microsoft\\Office\\8.0\\Common\\Toolbar", "Tooltips");
ApplyMappedValue("HKCU\\Software\\Microsoft\\Office\\8.0\\Common\\Toolbar", "Tooltips","HKLM\\Software\\Microsoft\\Office\\8.0\\Common\\Toolbar");
ApplyMappedValue("HKCU\\Software\\Microsoft\\Office\\8.0\\Common\\Toolbar", "Tooltips", "HKLM\\Software\\Microsoft\\Office\\8.0\\Common\\Toolbar", ";");
ApplyMappedValue("HKCU\\Software\\Microsoft\\Office\\8.0\\Common\\Toolbar", "Tooltips", "", ";");
ApplyMappedValue("HKCU\\Software\\Microsoft\\Office\\8.0\\Common\", "Tooltips", "", ";", true);