小白解决Win11(Win10)下.html文件默认打开方式无法修改,绑定为IE浏览器 iexplorer.exe

解决方法

  1. Win+R键,输入regedit,地址栏输入计算机\HKEY_CLASSES_ROOT\IE.AssocFile.HTM\shell\opennew\command
  2. 双击(默认),将"C:\Program Files (x86)\internet explorer\iexplore.exe" %1修改成"你的浏览器的路径" %1 (英文的双引号不要去掉)

OK了

如何查找浏览器的路径

  1. 打开任务管理器,快捷键是Ctrl+Shift+Esc,在详细信息找到你的浏览器的进程.exe
  2. 右键,打开文件所在的位置
  3. 点击文件,可以按Ctrl+Shift+C复制其绝对路径

比如:
msedge.exeC:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
chrome.exeC:\Program Files\Google\Chrome\Application\chrome.exe

缘由

https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-change-default-app-for-the-html-files/b38946e5-2399-4899-8523-5d1c5c0d044e

https://www.pretentiousname.com/miscsoft/#FileTypeDiag

posted @ 2024-03-16 12:19  Nolca  阅读(302)  评论(0编辑  收藏  举报