注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

分享,态度 ·~~

—— 十年太长,五年;如果可以回到五年前,你最想对那时候的自己说什么?

 
 
 

日志

 
 

关于 "始终使用选择的程序打开这种文件" 默认勾选的问题  

2009-09-25 13:52:52|  分类: Win/App |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

        昨天打开一个.isl文件,由于不是系统默认的文件格式,于是在打开的时候右键选择从列表程序中打开,但是我没有看到下面有一个checkbox说“始终使用选择的程序打开这种文件”,默认是勾选的,这下好,我整整花了半个小时去摸索着解除关联(有关Windows7中解除文件关联的方法,看这里:http://zwkufo.blog.163.com/blog/static/258825120098247142624/)。

        于是想,有没有可以设置默认是不勾选的,正常的想法是,微软应该在注册表中提供了这个值的设置,找了半天,没有,郁闷。一筹莫展的时候,看到有一位仁兄把选框变灰了(在文章后面有附)。呵呵平时没有很多类似的操作的话,这也是一个不错的方法,大不了以后以后再改注册表。但是个人觉得找注册表总是不爽的,于是写了个简单的程序方便更改:

关于“始终使用选择的程序打开这种文件”默认勾选的问题 - 乂乂 - 一个人,一支烟  ·~~

        如果有需要的话,留下邮箱,我可以发过来,其实还蛮简单的小程序。

        在Windows7下跑过完全没有问题,在WinXP下好像有错,不知道是不是framework的问题。呵呵不管了,C#写的么,难免在XP下有问题,有时间再C++折腾一个出来。下面的是直接改regedit的方法,献上:

 

===================附文,剽窃这种事我是不做滴 ^_^ ·~~=================== http://www.askvg.com/how-to-enable-disable-always-use-the-selected-program-to-open-this-kind-of-file-option-in-open-with-dialog-box/

Whenever we use "Open With" option to open a file in Windows, it shows a dialog box containing a list of installed programs to choose from. There is also a checkbox "Always use the selected program to open this kind of file" given at the bottom of this dialog box which is used to set the selected program permanent to open that file type.

Windows XP Default "Open With" Dialog Box:

关于“始终使用选择的程序打开这种文件”默认勾选的问题 - 乂乂 - 一个人,一支烟  ·~~

Windows Vista, 7 or Server 2008 Default "Open With" Dialog Box:

关于“始终使用选择的程序打开这种文件”默认勾选的问题 - 乂乂 - 一个人,一支烟  ·~~

Sometimes its getting irritating when we accidentally select a program from the list and click on "OK" button. It sets the selected program as default to open that file type which adds some extra work to our life.

So here I'll tell you a simple registry trick to permanently disable this checkbox:

For Windows XP:

Method A:

1. Open regedit and goto:

HKEY_CLASSES_ROOT\Unknown\shell\openas\command

2. In right-side pane, change value of "Default" key to as following:

%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,OpenAs_RunDLL %1 %2

NOTE: We have only appended %2 at last of default value. You can use any number from 2-9.

3. Exit registry editor and try to open "Open With" dialog box. You'll find that the checkbox is disabled now as shown in following screenshot:

2009年9月25日 - 乂乂 - 一个人,一支烟  ·~~

Method B:

1. Open regedit and goto:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ Policies\Explorer

If the "Explorer" key is not present, create it manually.

2. Now in right-side pane, create a new DWORD value NoFileAssociate and set its value to 1

3. Exit registry editor and try to open "Open With" dialog box. You'll find that the checkbox is disabled now as shown in following screenshot:

2009年9月25日 - 乂乂 - 一个人,一支烟  ·~~

For Windows Vista, 7 or Server 2008:

Method A:

1. Open regedit and goto:

HKEY_CLASSES_ROOT\Unknown\shell\opendlg\command

2. In right-side pane, change value of "Default" key to as following:

%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,OpenAs_RunDLL %1 %2

NOTE: We have only appended %2 at last of default value. You can use any number from 2-9.

3. Exit registry editor and try to open "Open With" dialog box. You'll find that the checkbox is disabled now as shown in following screenshot:

2009年9月25日 - 乂乂 - 一个人,一支烟  ·~~

Method B:

1. Open regedit and goto:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ Policies\Explorer

If the "Explorer" key is not present, create it manually.

2. Now in right-side pane, create a new DWORD value NoFileAssociate and set its value to 1

3. Exit registry editor and try to open "Open With" dialog box. You'll find that the checkbox is disabled now as shown in following screenshot:

2009年9月25日 - 乂乂 - 一个人,一支烟  ·~~

NOTE: As you can see, when we use Method A to disable the checkbox, the "Open With" dialog box doesnt show recommended programs list which it does when we use Method B. Also if you see the last screenshot of Windows Vista, the Method B totally remove the checkbox instead of disabling it.

BONUS TIP: This tutorial can also be used in reverse condition. e.g. if this checkbox is already disabled in your Windows and you want to enable it, then you can remove the %2 mentioned in Method A or set value of DWORD value to 0 as mentioned in Method B.


 

  评论这张
 
阅读(2044)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017