转载请注明出处:https://blog.youkuaiyun.com/qq_39309348/article/details/108627989
目录
法一
win+r
输入regedit
进入注册表
HKEY_CLASSES_ROOT-*-shell
下创建Typora
的项
- 默认值改为
Open With Typora
- 新建
字符串值
,名为icon
,值为Typora的位置
- 在
Typora
下新建项,名为command
,默认值为F:\Typora\bin\typora.exe %1
- 至此,就可以通过Typora打开文件了
法二
- 如果操作不过来,可以新建
temp.txt
输入以下内容
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Typora]
"icon"="F:\\Typora\\bin\\typora.exe"
@="Open With Typora"
[HKEY_CLASSES_ROOT\*\shell\Typora\command]
@="F:\\Typora\\bin\\typora.exe %1"
- 把
temp.txt
改名为temp.reg
- 双击运行,就ok了
有用的话点个赞呗