Win10 注册表的使用教程


右键新建内容无文本文档

  • 检查C:\WINDOWS\notepad.exe是否存在,如无可在搜索引擎中下载;

  • 新建后缀为.reg的文本文档,这里可以各自大显身手,留一个参考选择,打开 CMD命令窗口:

    copy con <文件名>.txt  <内容>
  • 将以下注册表信息写入.reg文件:

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\.txt]
    
    @="txtfile"
    
    "Content Type"="text/plain"
    
    [HKEY_CLASSES_ROOT\.txt\ShellNew]
    
    "NullFile"=""
    
    [HKEY_CLASSES_ROOT\txtfile]
    
    @="文本文档"
    
    [HKEY_CLASSES_ROOT\txtfile\shell]
    
    [HKEY_CLASSES_ROOT\txtfile\shell\open]
    
    [HKEY_CLASSES_ROOT\txtfile\shell\open\command]
    
    @="NOTEPAD.EXE %1"
  • 双击打开,合并到注册表中

添加右键新建.md文件

  • 打开注册表编辑器,在计算机>HKEY_CLASSES_ROOT中,搜索Typora,搜索选项只勾选

  • 搜索到计算机\HKEY_CLASSES_ROOT\Applications\Typora.exe

  • 在任意位置,新建文本文件,后缀为.reg,写入以下内容:

    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\.md]
    @="Typora.exe"
    [HKEY_CLASSES_ROOT\.md\ShellNew]
    "NullFile"=""
    [HKEY_CLASSES_ROOT\Typora.exe]
    @="Markdown"
  • 编码选择Unicode,保存后双击打开,合并注册到注册表即可

桌面右键菜单添加控制面板快捷方式

这个就没什么好说的了,直接创建.reg,双击打开合并注册表即可:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\ControlPanel]
"MUIVerb"="控制面板"
"SubCommands"="ControlPanel;DeviceManager;Software;Windows.NetworkAndSharing;WindowsSettings;WindowsVersion;RegistryEditor;Windows.RecycleBin.Empty"
"Icon"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
  00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
  6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
  00,32,00,37,00,00,00
"Position"="bottom"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ControlPanel]
@="控制面板"
"Icon"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
  00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
  6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
  00,32,00,37,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ControlPanel\command]
"DelegateExecute"="{06622D85-6856-4460-8DE1-A81921B41C4B}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\DeviceManager]
@="设备管理器"
"ControlPanelName"="Microsoft.DeviceManager"
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
  00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\
  65,00,76,00,6d,00,67,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,32,00,30,\
  00,31,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\DeviceManager\command]
"DelegateExecute"="{06622D85-6856-4460-8DE1-A81921B41C4B}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\RegistryEditor]
@="注册表编辑器"
"Icon"="regedit.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\RegistryEditor\command]
@="regedit.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Software]
@="程序和功能"
"ControlPanelName"="Microsoft.ProgramsAndFeatures"
"Icon"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
  00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
  6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
  00,38,00,37,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Software\command]
"DelegateExecute"="{06622D85-6856-4460-8DE1-A81921B41C4B}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WindowsSettings]
@="系统设置"
"Icon"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
  00,25,00,5c,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,\
  6c,00,2c,00,2d,00,31,00,36,00,38,00,32,00,36,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WindowsSettings\Command]
"DelegateExecute"="{44090B31-CDF9-4ad1-8182-DB5DA3627974}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WindowsVersion]
@="系统版本"
"Icon"=hex(2):69,00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,\
  00,6c,00,2c,00,2d,00,38,00,31,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WindowsVersion\command]
@="winver.exe"


文章作者: Mahoo Huang
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Mahoo Huang !
评论
 上一篇
Google Drive 调用 IDM 下载大文件 Google Drive 调用 IDM 下载大文件
最近在用 Google Drive 收集一些好东西,但是下载的时候由于文件过大的限制还是其他原因,遇到了一些问题: 在网上找到了解决方法,在这里记录一下: 右键点击文件,选择添加星标 在页面左栏的已加星标中,找到文件;右键点击文件复制,
2020-08-22
下一篇 
安卓开发学习之底部导航栏实战 安卓开发学习之底部导航栏实战
创建主布局在 activity 中绑定的布局中,设置如下布局: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schem
2020-08-02
  目录