2019-03-11 12:16:19 +00:00
|
|
|
# reg query
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 显示注册表中键和子键的值。
|
2019-03-11 12:16:19 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示一个键中的所有值:
|
2019-03-11 12:16:19 +00:00
|
|
|
|
|
|
|
`reg query {{键名}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示键中指定的值:
|
2019-03-11 12:16:19 +00:00
|
|
|
|
|
|
|
`reg query {{键名}} /v {{值}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示指定键和其子键中的所有的值:
|
2019-03-11 12:16:19 +00:00
|
|
|
|
|
|
|
`reg query {{键名}} /s`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 搜索与特定模式匹配的键和值:
|
2019-03-11 12:16:19 +00:00
|
|
|
|
|
|
|
`reg query {{键名}} /f "{{查询语句}}"`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示与指定数据类型匹配的键的值:
|
2019-03-11 12:16:19 +00:00
|
|
|
|
|
|
|
`reg query {{键名}} /t {{类型}}`
|