setRegistryValue: Set Registry Value

setRegistryValueR Documentation

Set Registry Value

Description

This allows the caller to set the value of a key in the registry.

Usage

setRegistryValue(path, key, value, type = .RegistryTypes["none"], top = .BuiltinKeys[1])

Arguments

path

the path to the folder in the registry in which to set the key. This is combined with top to identify the particular path in the registry.

key

the key within the folder specified by path and top. If this is either NULL or "", the value is used as the default value for the specified key.

value

the S object to which to set the registry key. This is converted to an appropriate value in C according to type and/or the default conversion mechanism

type

type for the value that is to be put into the registry. This controls how the S value is converted to a value in the registry.

top

the top-level key in the registry for this path

Value

NULL, always!

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://www.omegahat.net/SWinRegistry

See Also

getRegistryValue

.resolveToplevelRegistryKey

Examples


setRegistryValue("HKEY_CURRENT_USER\\Volatile Environment\\duncan", value = "foobar", type = .RegistryTypes["sz"] )

 setRegistryValue("HKEY_CURRENT_USER\\Volatile Environment\\duncan", value = "foobar")


omegahat/SWinRegistry documentation built on July 17, 2022, 7:26 p.m.