Win7下修复exe文件关联的办法   Leave a comment

我承认,人的手不能太贱,当我看到迅雷软件监控提示kmplayer可以更新而莫名其妙的点“确定”的那一刻,我就应该意识到随便相信这种玩意是会惹来麻烦的。
不知道是迅雷软件监控的问题还是那个kmplayer更新版本的问题,更新之后,系统所有exe文件都被关联到了kmplayer,结果就是任何程序都没法打开,包括cmd.exe, regedit.exe

折腾了好久,在网上找到了好些相关的帖子,但是绝大部分都是过时的,还好最后找到了个对应win7的解决办法:
===创建一个.reg文件,把以下内容粘贴,然后双击运行该.reg===
Windows Registry Editor Version 5.00
;reset exe file association
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\OpenWithList]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\OpenWithProgids]
“exefile”=hex(0):
REGEDIT4

[HKEY_CLASSES_ROOT\exefile\shell\open\command]
@=”\”%1\” %*”
======================================

另外,要把被改过的exe图标改回来,还有另外一段命令:
==创建一个.bat文件,把以下内容拷入,双击bat文件运行=====
rem 关闭explorer.exe

  taskkill /f /im explorer.exe

  attrib -h -i %userprofile%\AppData\Local\IconCache.db

  del %userprofile%\AppData\Local\IconCache.db /a

  rem 打开explorer

  start explorer
=====================================

goodluck!

Posted 十月 3, 2010 by jaminx in IT点点点

回應文章

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook photo

You are commenting using your Facebook account. Log Out / 變更 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.