Windows 注册表键值查询
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
功能
显示指定 Windows 注册表键值的内容。
支持的注册表键值类型:
-
SZ(以字符串形式显示) -
EXPAND_SZ(以字符串形式显示) -
BINARY(以字符串形式显示) -
DWORD(以大写 0x 开头的十六进制形式显示) -
QWORD(以大写 0x 开头的十六进制形式显示)
示例配置
- json
- yaml
- toml
{
"type": "winreg",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#444444",
"template": " {{ .Value }}",
"options": {
"path": "HKLM\\software\\microsoft\\windows nt\\currentversion\\buildlab",
"fallback": "unknown"
}
}
type: winreg
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#444444"
template: " {{ .Value }}"
options:
path: HKLM\software\microsoft\windows nt\currentversion\buildlab
fallback: unknown
type = "winreg"
style = "powerline"
powerline_symbol = ""
foreground = "#ffffff"
background = "#444444"
template = " {{ .Value }}"
[options]
path = "HKLM\\software\\microsoft\\windows nt\\currentversion\\buildlab"
fallback = "unknown"
选项
| Name | Type | Default | Description |
|---|---|---|---|
path | string | registry path to the desired key using backslashes and with a valid root HKEY name. Ending path with \ will get the (Default) key from that path | |
fallback | string | the value to fall back to if no entry is found |
模板 (信息)
默认模板
{{ .Value }}
属性
| Name | Type | Description |
|---|---|---|
| .Value | string | The result of your query, or fallback if not found. |