Repository navigation
dos_regset
Dale Fugier edited this page Jul 1, 2026
·
1 revision
Note, this function is deprecated. Use either dos_regsetint or dos_regsetstr.
Sets a string value or adds a key in the Windows Registry.
WARNING: Using registry functions incorrectly can cause serious problems that may require you to reinstall your operating system. Use the registry functions carefully.
(dos_regset key [name [value]])
key
The registry key.
name
The name of the value to modify.
value
The value to set
If a name was not specified, then the key that was created.
If a value was not specified, then the value name that was created.
Otherwise the value that was set is returned if successful.
nil on error.
Command: (dos_regset "HKEY_CURRENT_USER\\Software\\MyApp")
"HKEY_CURRENT_USER\\Software\\MyApp"
Command: (dos_regset "HKEY_CURRENT_USER\\Software\\MyApp" "MyItem1")
"MyItem1"
Command: (dos_regset "HKEY_CURRENT_USER\\Software\\MyApp" "MyItem1" "True")
"True"
Command: (dos_regset "HKEY_CURRENT_USER\\Software\\MyApp" "MyItem1" "False")
"False"