解决方法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文件的关联。