Windows2K恢复EXE文件关联的解决方案

博客主要介绍了Windows系统中解决EXE文件关联问题的方法。包括修改注册表中相关键值,如将[HKEY_CLASSES_ROOT/exefile/shell/open/command]里的Default值改为%1;重新启动系统进入带命令安全模式,使用assoc命令;还提到若regedit.exe无法运行可改名运行,2000以上系统可在DOS下运行特定命令恢复关联。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

解决方法1:  
 
注册表里  
[HKEY_CLASSES_ROOT/exefile/shell/open/command]  
把里面的Default对应的值改为%1就好。  
 
解决方法2:  
重新启动系统,进入带命令安全模式。  
c:/>assoc  .exe=exefile  
 
C:/>help  assoc  
Displays  or  modifies  file  extension  associations  
 
ASSOC  [.ext[=[fileType]]]  
 
   .ext            Specifies  the  file  extension  to  associate  the  file  type  with  
   fileType    Specifies  the  file  type  to  associate  with  the  file  extension  
 
Type  ASSOC  without  parameters  to  display  the  current  file  associations.  
If  ASSOC  is  invoked  with  just  a  file  extension,  it  displays  the  current  
file  association  for  that  file  extension.    Specify  nothing  for  the  file  
type  and  the  command  will  delete  the  association  for  the  file  extension.  
 
方法3:  
 
选择  
HKEY_CLASSES_ROOT/exefile/shell/open/command        
HKEY_CLASSES_ROOT/exefile/shell/runas/command  
看看默认值是不是"%1"%*,不是,把它改回来。  
 
看看注册表的开始启动菜单,有没有异常服务启动。  
  
如果regedit.exe那个时候不能运行,可以改名regedit.com
==================================

可以通过修改注册表来恢复EXE文件。因为EXE文件都无法打开,所以只有先将Windows目录下的注册表编辑器“Regedit.exe”改为“Regedit.com”,然后运行它,依次找到HKEY_CLASSES_ROOT/exefile/shell/open/command,双击“默认”字符串,将其数值改为“"%1" %*”就可以了。

如果是2000以上的操作系统,也可以执行以下命令进行更改:
在DOS下运行“ftype exefile=%1 %*”或“assoc .exe=exefile”命令也可以恢复EXE文件的关联。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值