windows 如何在打开方式对话框中启用“始终使用所选程序打开此类文件”选项?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2543254/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 07:14:07  来源:igfitidea点击:

How to enable “Always use the selected program to open this kind of file” option in the open-with-dialog box?

windowsopen-with

提问by lm.

How can I enable “Always use the selected program to open this kind of file” option in the Open With dialogbox?

如何在“打开方式”对话框中启用“始终使用所选程序打开此类文件”选项?

I already checked the following registry entries:

我已经检查了以下注册表项:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer
Value of "NoFileAssociate" Set to 0 ( as reccomended on Microsoft site )

HKEY_CLASSES_ROOT\Unknown\shell\openas\command
Value of "Default" set to
%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,OpenAs_RunDLL %1

What else could cause the “Always use the selected program to open this kind of file” option to be disabled?

还有什么可能导致“始终使用所选程序打开此类文件”选项被禁用?

回答by user328414

Sorry for this reply I realise this topic has been asleep for 3 months but I have recently discovered how to fix a similar problem on my PC and hope it will do the same for the original poster.

很抱歉回复我,我意识到这个话题已经沉睡了 3 个月,但我最近发现了如何在我的电脑上解决类似的问题,并希望它对原始海报也能做到这一点。

First off, are you sure it affects files of All types? I find it unlikely you have checked them all so I am hoping this fix will work for you.

首先,您确定它会影响所有类型的文件吗?我发现您不太可能检查所有这些,因此我希望此修复程序对您有用。

  1. Open Regedit.exe
  2. Navigate to the following subkey
  1. 打开Regedit.exe
  2. 导航到以下子项

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts

  1. Scroll down and find the file extension you are having problems with (for me it was .sln).

  2. Expand it to view its sub keys.

  3. Find a sub key called "UserChoice" and delete it.

  1. 向下滚动并找到您遇到问题的文件扩展名(对我来说是 .sln)。

  2. 展开它以查看其子键。

  3. 找到一个名为“UserChoice”的子键并将其删除。

Repeat steps 3 to 5 for each file extension causing you problems.

对每个导致问题的文件扩展名重复步骤 3 到 5。

For me the "UserChoice" contained a key called "Progid" and its value was "Applications\vbexpress.exe". This was causing all of my .sln files to open with vbexpress.exe and Windows would not let me choose an alternative program (I wanted it to open with Studio2010). This problem had plagued me for a week before I finally found the above fix lol. Hope this helps.

对我来说,“UserChoice”包含一个名为“Progid”的键,其值为“Applications\vbexpress.exe”。这导致我所有的 .sln 文件都用 vbexpress.exe 打开,Windows 不允许我选择替代程序(我希望它用 Studio2010 打开)。这个问题困扰了我一个星期,然后我终于找到了上面的修复,哈哈。希望这可以帮助。

回答by Damien_The_Unbeliever

If the file you're opening has no extension, then this option will never be available.

如果您打开的文件没有扩展名,则此选项将永远不可用。

Otherwise, try to flesh out your question with more detail on what type of files you're dealing with.

否则,请尝试用有关您正在处理的文件类型的更多详细信息来充实您的问题。