Skip to main content
rb.registry reads and writes the Windows registry. A script reaches for it to keep a value where other programs can find it, or to change a setting an app reads from the registry. No permission guards it. Needs: Windows. This script counts its own launches in a value under HKCU:
On other systems every call raises Registry is only available on Windows. key_path starts with a hive: HKLM, HKCU, HKCR, HKU, HKCC or their HKEY_ forms. type is REG_SZ, REG_EXPAND_SZ, REG_MULTI_SZ (a list of strings), REG_DWORD, REG_QWORD (numbers) or REG_BINARY (a byte string). write accepts every type listed, but read cannot return REG_MULTI_SZ or REG_BINARY values.