vl-registry-write (AutoLISP)

Creates a key in the Windows registry

(vl-registry-write reg-key [val-name val-data])

Arguments

reg-key

A string specifying a Windows registry key.

Note: You cannot use vl-registry-write for HKEY_USERS or KEY_LOCAL_MACHINE.
val-name

A string containing the value of a registry entry.

val-data

A string containing registry data.

If val-name is not supplied or is nil,a default value for the key is written. If val-name is supplied and val-data is not specified, an empty string is stored.

Return Values

vl-registry-write returns val-data, if successful; otherwise nil.

Examples

(vl-registry-write "HKEY_CURRENT_USER\\Test" "" "test data")
"test data"

(vl-registry-read "HKEY_CURRENT_USER\\Test")
"test data"