BarTender设置默认打开方式

Posted by 每天要好心情哦,我的朋友 on May 12, 2026

有的电脑默认打开方式无法修改

  • 所以用修改注册表方法,默认用软件路径打开

  • 修改路径后,导入注册表

  • 再重启资源管理器

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Windows Registry Editor Version 5.00

; ====================== 只需要修改这里的路径 ======================
; 把下面双引号里的路径改成你电脑上 bartend.exe 的真实路径
; 只改这一行!其他全部自动套用
#define BARTENDER_PATH "C:\Program Files\Seagull\BarTender 2019\bartend.exe"
; ==================================================================

; 删除锁定的UserChoice(解决无法修改默认打开方式问题)
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.btw\UserChoice]

; 关联.btw文件后缀
[HKEY_CLASSES_ROOT\.btw]
@="Bartender.Document"

; 设置默认打开程序(自动使用上方定义的路径)
[HKEY_CLASSES_ROOT\Bartender.Document\shell\open\command]
@=strreplace("%BARTENDER_PATH%", "\", "\\") \"%1\"

; 注册到系统打开方式列表(自动使用上方定义的路径)
[HKEY_CLASSES_ROOT\Applications\bartend.exe\shell\open\command]
@=strreplace("%BARTENDER_PATH%", "\", "\\") \"%1\"

win+r输入cmd

1
taskkill /f /im explorer.exe && start explorer.exe