【发布时间】:2025-11-25 09:50:02
【问题描述】:
我有以下问题。出于某种原因(我想尝试一下),我将命令提示符(C:\Windows\System32\cmd.exe)设置为默认程序(右键单击 JS 文件,属性,打开方式 -> 更改...)。
现在,由于某种原因,我无法将其改回其他程序。在文件选项中这样做的选项已经消失。有什么办法可以恢复正常吗?
谢谢, 鲁本。
编辑: reg query hkcr\jsfile\shell /s 的输出:
HKEY_CLASSES_ROOT\jsfile\shell (默认) REG_SZ 打开
HKEY_CLASSES_ROOT\jsfile\shell\编辑
HKEY_CLASSES_ROOT\jsfile\shell\Edit\Command (默认) REG_SZ C:\Windows\System32\Notepad.exe %1
HKEY_CLASSES_ROOT\jsfile\shell\使用 Adobe Dreamweaver CS5.5 编辑
HKEY_CLASSES_ROOT\jsfile\shell\使用 Adobe Dreamweaver 编辑 CS5.5\命令 (默认)REG_SZ "C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5.5 \Dreamweaver.exe","%1"
HKEY_CLASSES_ROOT\jsfile\shell\Open
HKEY_CLASSES_ROOT\jsfile\shell\Open\Command (默认)REG_SZ "C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5.5 \dreamweaver.exe","%1"
HKEY_CLASSES_ROOT\jsfile\shell\Open\ddeexec (默认) REG_SZ
HKEY_CLASSES_ROOT\jsfile\shell\Open2 (默认) REG_SZ 打开&with命令提示符 MUIVerb REG_SZ @C:\Windows\System32\wshext.dll,-4511
HKEY_CLASSES_ROOT\jsfile\shell\Open2\Command (默认) REG_SZ C:\Windows\System32\CScript.exe "%1" %*
HKEY_CLASSES_ROOT\jsfile\shell\打印
HKEY_CLASSES_ROOT\jsfile\shell\Print\Command (默认) REG_SZ C:\Windows\System32\Notepad.exe /p %1
【问题讨论】: