如何在 Windows 11 中使用 Notepad Legacy 打开文件类型

如何在 Windows 11 中使用 Notepad Legacy 打开文件类型

我在电脑上安装了 Windows 11,但排除了新的UWP 记事本应用程序。

虽然它支持深色主题,但字符间距变化很大(不同行上的相同单词具有不同的宽度)。

我决定使用旧版记事本打开文件,但找不到方法将该应用设置为默认打开这些文件的应用程序,因为记事本未显示在打开方式对话框

使用以下方式打开文件记事本视窗system32,或者其他路径显示错误“您选择的程序无法与此文件类型关联。请选择其他程序。”

我曾尝试使用命令 assoc .json=txtfile或者assoc .json=txtfilelegacy但是都不起作用。

答案1

更新答案:

在深入研究了该工具所做的更改后,我发现细绳 NoOpenWith(无数据)从註冊钥匙:

HKEY_LOCAL_MACHINE\Software\Classes\Applications\notepad.exe

旧答案:

好的,我找到了解决方案。

下载打开视图经过尼尔软件

旧版记事本将会在工具中列出。

右键单击应用程序并选择启用选定项目一切就绪。

现在记事本将显示在使用对话框打开

答案2

我找到了另一种无需下载第三方软件的解决方案。

*要使用旧记事本,请将此代码粘贴到记事本中并另存为.reg 文件并运行它:

Windows Registry Editor Version 5.00

;Restore Old Classic Notepad on Windows 11
;Created by Ramesh Srinivasan for Winhelponline.com
;Created on May 6, 2022; Revised on May 12, 2022.

[HKEY_CLASSES_ROOT\Applications\notepad.exe]
"NoOpenWith"=-

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\notepad.exe]

[HKEY_CLASSES_ROOT\txtfilelegacy\DefaultIcon]
@="imageres.dll,-102"

[HKEY_CLASSES_ROOT\txtfilelegacy\shell\open\command]
@="C:\\Windows\\System32\\notepad.exe \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
"UseFilter"=dword:00000000

*要撤消更改并再次使用记事本应用程序,请将此代码粘贴到记事本中,另存为.reg 文件并运行它:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Applications\notepad.exe]
"NoOpenWith"=""

[-HKEY_CLASSES_ROOT\txtfilelegacy\DefaultIcon]

[-HKEY_CLASSES_ROOT\txtfilelegacy\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
"UseFilter"=dword:00000001

我在这里找到了这个解决方案: https://www.winhelponline.com/blog/restore-old-classic-notepad-windows/

答案3

奇怪的是,虽然您无法“使用(记事本)打开(.srt 文件),但您可以运行记事本,然后打开所需的 .srt 文件!!! 可能是某些 .srt 文件嵌入了记事本无法显示的字符(例如,音乐符号),但您会认为它只会显示垃圾,而允许其余字符 - - 时间和纯文本 - - 正确显示。

或者,改用写字板(在我的计算机上,它位于 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories)。

答案4

这是答案,但有人投了反对票,而我没有足够的声望,因为这是一个新帐户,无法投赞成票,所以我再次发布它。感谢上面发布此内容的人,它有效,它很容易,不应该被否决。

我找到了另一种无需下载第三方软件的解决方案。

*要使用旧版记事本,请将此代码粘贴到记事本中并另存为 .reg 文件并运行它:

Windows Registry Editor Version 5.00

;Restore Old Classic Notepad on Windows 11
;Created by Ramesh Srinivasan for Winhelponline.com
;Created on May 6, 2022; Revised on May 12, 2022.

[HKEY_CLASSES_ROOT\Applications\notepad.exe]
"NoOpenWith"=-

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\notepad.exe]

[HKEY_CLASSES_ROOT\txtfilelegacy\DefaultIcon]
@="imageres.dll,-102"

[HKEY_CLASSES_ROOT\txtfilelegacy\shell\open\command]
@="C:\\Windows\\System32\\notepad.exe \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
"UseFilter"=dword:00000000

*要撤消更改并再次使用记事本应用程序,请将此代码粘贴到记事本中,保存为 .reg 文件并运行它:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Applications\notepad.exe]
"NoOpenWith"=""

[-HKEY_CLASSES_ROOT\txtfilelegacy\DefaultIcon]

[-HKEY_CLASSES_ROOT\txtfilelegacy\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
"UseFilter"=dword:00000001

我在这里找到了这个解决方案:https://www.winhelponline.com/blog/restore-old-classic-notepad-windows/ 分享 编辑 关注 已编辑 6月8日 12:17

相关内容