转载请注明出处:https://blog.csdn.net/qq_39309348/article/details/108627944
目录
法一
-
win+r
输入regedit
进入注册表
-
找到
HKEY_CLASSES_ROOT-Directory-Background-shell
新建项Typora
-
默认值改为
Open Typora
-
新建
字符串值
,名字为icon
,值为你应用位置,比如我的F:\Typora\bin\typora.exe
-
在
Typora
下创建项,名为command
,值为路径+%V
,如我的F:\Typora\bin\typora.exe %V
-
至此,已经可以直接右键打开Typora了
法二
- 如果操作不过来,可以新建
temp.txt
输入以下内容
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Typora]
@="Open Typora"
"icon"="F:\\Typora\\bin\\typora.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Typora\command]
@="F:\\Typora\\bin\\typora.exe %V"
- 把
temp.txt
改名为temp.reg
- 双击运行,就ok了
有用的话点个赞呗