EXE文件运行不了-解决方案
来源:互联网 发布:上海铁路局科研所 知乎 编辑:程序博客网 时间:2024/06/11 04:57
方法 1: 适用于所用 Windows 95 以上版本的 Windows (9x/ME/2000/XP/2003)
开始->运行->输入"command" (在 Windows 2000/XP/2003 中,输入"cmd"),回车
在命令行中,依次执行以下命令:
cd %windir%
copy regedit.exe regedit.com
regedit
注册表编辑器打开后,找到以下分支:
HKEY_CLASSES_ROOT/exefile/shell/open/command
双击右侧窗口中的 (默认) 值,设置为 "%1" %* [包含引号]
再找到:
HKEY_CLASSES_ROOT/.exe
双击右侧窗口中的 (默认) 值,设置为 exefile
然后退出注册表编辑器,重启电脑
方法 2: 适用于 Windows 2000/XP/2003
开始->运行->输入"cmd",回车
在命令行中,依次执行以下命令:
ftype exefile="%1" %* [包含引号]
assoc .exe=exefile
重启电脑
方法 3: 适用于 Windows 2000/XP/2003
下载并运行以下任一 .reg 文件
http://www.kellys-korner-xp.com/regs_edits/exefix.reg
http://www.dougknox.com/xp/fileassoc/xp_exe_fix.zip
或者查看下面.reg内容(把内容复制到记事本中,保存成.reg的文件并且导入即可)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/.exe]
@="exefile"
"Content Type"="application/x-msdownload"
[HKEY_CLASSES_ROOT/.exe/PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT/exefile]
@="Application"
"EditFlags"=hex:38,07,00,00
"TileInfo"="prop:FileDescription;Company;FileVersion"
"InfoTip"="prop:FileDescription;Company;FileVersion;Create;Size"
[HKEY_CLASSES_ROOT/exefile/DefaultIcon]
@="%1"
[HKEY_CLASSES_ROOT/exefile/shell]
[HKEY_CLASSES_ROOT/exefile/shell/open]
"EditFlags"=hex:00,00,00,00
[HKEY_CLASSES_ROOT/exefile/shell/open/command]
@="/"%1/" %*"
[HKEY_CLASSES_ROOT/exefile/shell/runas]
[HKEY_CLASSES_ROOT/exefile/shell/runas/command]
@="/"%1/" %*"
[HKEY_CLASSES_ROOT/exefile/shellex]
[HKEY_CLASSES_ROOT/exefile/shellex/DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[HKEY_CLASSES_ROOT/exefile/shellex/PropertySheetHandlers]
[HKEY_CLASSES_ROOT/exefile/shellex/PropertySheetHandlers/PEAnalyser]
@="{09A63660-16F9-11d0-B1DF-004F56001CA7}"
[HKEY_CLASSES_ROOT/exefile/shellex/PropertySheetHandlers/PifProps]
@="{86F19A00-42A0-1069-A2E9-08002B30309D}"
[HKEY_CLASSES_ROOT/exefile/shellex/PropertySheetHandlers/ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
[HKEY_CLASSES_ROOT/regfile]
@="Registration Entries"
"EditFlags"=dword:00100000
"BrowserFlags"=dword:00000008
[HKEY_CLASSES_ROOT/regfile/DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,/
00,5c,00,72,00,65,00,67,00,65,00,64,00,69,00,74,00,2e,00,65,00,78,00,65,00,/
2c,00,31,00,00,00
[HKEY_CLASSES_ROOT/regfile/shell]
@="open"
[HKEY_CLASSES_ROOT/regfile/shell/edit]
[HKEY_CLASSES_ROOT/regfile/shell/edit/command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,/
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,/
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,/
00
[HKEY_CLASSES_ROOT/regfile/shell/open]
@="Mer&ge"
[HKEY_CLASSES_ROOT/regfile/shell/open/command]
@="regedit.exe /"%1/""
[HKEY_CLASSES_ROOT/regfile/shell/print]
[HKEY_CLASSES_ROOT/regfile/shell/print/command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,/
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,/
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,/
00,25,00,31,00,00,00
[HKEY_CLASSES_ROOT/.lnk]
@="lnkfile"
[HKEY_CLASSES_ROOT/.lnk/ShellEx]
[HKEY_CLASSES_ROOT/.lnk/ShellEx/{000214EE-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT/.lnk/ShellEx/{000214F9-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT/.lnk/ShellEx/{00021500-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT/.lnk/ShellEx/{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT/.lnk/ShellNew]
"Command"="rundll32.exe appwiz.cpl,NewLinkHere %1"
[HKEY_CLASSES_ROOT/lnkfile]
@="Shortcut"
"EditFlags"=dword:00000001
"IsShortcut"=""
"NeverShowExt"=""
[HKEY_CLASSES_ROOT/lnkfile/CLSID]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT/lnkfile/shellex]
[HKEY_CLASSES_ROOT/lnkfile/shellex/ContextMenuHandlers]
[HKEY_CLASSES_ROOT/lnkfile/shellex/ContextMenuHandlers/Offline Files]
@="{750fdf0e-2a26-11d1-a3ea-080036587f03}"
[HKEY_CLASSES_ROOT/lnkfile/shellex/ContextMenuHandlers/{00021401-0000-0000-C000-000000000046}]
[HKEY_CLASSES_ROOT/lnkfile/shellex/DropHandler]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT/lnkfile/shellex/IconHandler]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT/lnkfile/shellex/PropertySheetHandlers]
[HKEY_CLASSES_ROOT/lnkfile/shellex/PropertySheetHandlers/ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
[HKEY_CLASSES_ROOT/CLSID/{00021401-0000-0000-C000-000000000046}]
@="Shortcut"
[HKEY_CLASSES_ROOT/CLSID/{00021401-0000-0000-C000-000000000046}/InProcServer32]
@="shell32.dll"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT/CLSID/{00021401-0000-0000-C000-000000000046}/PersistentAddinsRegistered]
[HKEY_CLASSES_ROOT/CLSID/{00021401-0000-0000-C000-000000000046}/PersistentAddinsRegistered/{89BCB740-6119-101A-BCB7-00DD010655AF}]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT/CLSID/{00021401-0000-0000-C000-000000000046}/PersistentHandler]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT/CLSID/{00021401-0000-0000-C000-000000000046}/ProgID]
@="lnkfile"
[HKEY_CLASSES_ROOT/CLSID/{00021401-0000-0000-C000-000000000046}/shellex]
[HKEY_CLASSES_ROOT/CLSID/{00021401-0000-0000-C000-000000000046}/shellex/MayChangeDefaultMenu]
- EXE文件运行不了-解决方案
- VS2012编译出的exe为什么在xp上运行不了?解决方案
- msconfig运行不了的解决方案
- 从VB资源文件中释放出的EXE文件为何运行不了?
- 无法启动此程序 因为计算机中丢失qt5cored.dll。运行不了exe文件
- .exe文件不能运行
- 单独运行.exe文件
- windows运行不了.bat文件
- u盘exe文件杀不了
- Eclipse运行不了的常见问题及解决方案
- bbqsql运行不了解决方案(原创)
- iexplore.exe自动运行解决方案之一
- ubuntu 运行一下exe文件
- VirtualBox 虚拟文件同名新建不了解决方案
- 由-msconfig运行不了的解决方案・所想到的
- qt中运行不了 vs中可运行 vs debug中exe不能运行
- myeclipse突然运行不了的原因以及解决方案
- vc 运行exe文件的方法
- delphi编程实现播放背景音乐
- Oracle Text 全文检索
- 住在我隔壁储藏室的大学刚毕业的小夫妻
- SQL Server 2000 全文检索
- datalist,datagrid,repeater的一些讨论
- EXE文件运行不了-解决方案
- 将程序图标填加进任务栏(VC++6.0)
- 高笑+发泄 从今天开始正式博起
- 网上看到的一些关于asp.net开发的经验
- 手动编写代码创建数据表
- Ajax中的高级请求和响应(1,2)
- 支持Oracle和MSSQL的语法要求
- DataGrid的修改、删除
- Ajax中的高级请求和响应(3,4)