如果您无法在计算机上打开.exe文件并看到消息无法打开 .exe 文件(Can’t open .exe file),请阅读本文以获取一些可能有助于解决问题的建议。
一些用户升级到Windows 10并遇到无法在其 PC 上打开 exe 文件的问题。但是,一些运行Windows 8.1的用户报告了同样的错误。乍一看,问题似乎与损坏的系统文件或受病毒感染的文件有关。
在本指南中,我们编制了一些快速简单的技巧,可帮助您摆脱困境。那么,让我们开始吧。
(Program)在Windows 10中单击(Windows 10)程序exe 时不会打开
如果您无法在Windows 10上运行可执行文件 (.exe) ,您可以尝试以下建议:
- 使用防病毒软件扫描 PC
- 修复损坏的 EXE 文件关联
- (Change .exe Value)在注册表编辑器中(Registry Editor)更改 .exe 值数据
- 使用命令提示符
- 创建一个新的用户帐户
- 运行 DISM。
现在让我们详细解释每种方法。
1]使用防病毒软件扫描PC
当您单击它们时,可能有一些恶意程序试图阻止打开 .EXE 文件。在这种情况下,我们建议您使用防病毒(antivirus)
软件(software)扫描您的 PC,看看它是否有效。
如果防病毒软件成功检测并解决了问题,请重新启动您的设备以完成清理过程。
2]修复损坏的EXE文件关联
修复损坏的 EXE 文件关联(Fix broken EXE file association) ,看看它是否有效。但在开始之前,不要忘记先备份注册表(backup your Registry) 或 创建系统还原点。
3]在注册表编辑器中(Registry Editor)更改.exe值(Change .exe Value)数据
运行Microsoft 安全(Microsoft Safety)扫描工具后,如果您仍然无法在计算机上打开.exe文件,则需要将注册表设置重置为默认设置。为此,请遵循以下建议:
要开始使用,请先打开注册表编辑器。
按(Press)Windows+R键盘快捷键打开“运行”(Run)对话框。在文本框中,键入 regedit 并按Enter打开Registry。
如果屏幕上出现UAC提示,请单击“(UAC)是”(Yes)按钮进行批准。
在注册表编辑器(Registry Editor)窗口中,浏览到以下注册表项:
HKEY_CLASSES_ROOT\.exe
选择.exe(.exe)后,双击Default进行编辑。这里的值数据(Value data)应该是“exefile”。因此,如果您有任何其他数据,请将其更改为exefile,然后单击“确定(OK)”按钮进行保存。
现在,再次转到注册表(Registry)窗口的左侧并浏览到以下注册表项:
HKEY_CLASSES_ROOT\exefile
选择exefile文件夹,然后移动到窗口的右窗格。
然后双击默认(Default)字符串并设置数值数据“%1” %*
现在单击确定(OK)按钮以保存更改。
之后,浏览到以下注册表项:
KEY_CLASSES_ROOT\exefile\shell\open
从左窗格中,选择打开(open)的注册表项,然后双击默认(Default )字符串。
在对话框中,设置数值(Value)数据“%1” %* ,然后点击确定按钮保存。
完成上述更改后,关闭注册表编辑器(Registry Editor)窗口并重新启动计算机。
4]使用命令提示符
如果您不知道自己在做什么,那么修改注册表是危险的。因此,如果您对此不满意,则可以使用命令提示符(Command Prompt)删除该服务。
为此,请 使用管理员权限打开提升的命令提示符(open an elevated Command Prompt with admin rights)。
当屏幕上出现UAC提示时,单击 Yes 按钮授予管理权限
在命令提示符(Command Prompt)窗口中,键入以下命令并按Enter:
assoc .exe=exefile
运行上述命令后,看看您现在是否可以在您的计算机上打开.exe文件。
5]创建一个新的用户帐户
创建一个新的用户帐户并检查您现在是否可以在您的计算机上打开.exe文件。如果它工作正常,则意味着旧用户帐户已损坏。
6]运行DISM工具
此问题背后的另一个可能原因可能是系统(System)文件损坏。如果是这种情况,您需要运行DISM命令工具来修复任何系统映像损坏并修复Windows 组件存储(Windows Component Store)本身。
为此,请打开“开始(Start)”菜单并键入Command Prompt。然后右键单击结果并选择Run as administrator。
如果屏幕上出现UAC提示,请单击“(UAC)是”(Yes)按钮进行批准。
在命令提示符窗口中,键入以下命令行并按Enter键 -
Dism.exe /online /cleanup-image /restorehealth
等待(Wait)一段时间,直到该过程完成。完成后,重新启动计算机并检查它是否解决了问题。
就是这样。让我们知道本指南的哪种方法可以帮助您解决问题。(That’s it. Let us know which method of this guide helped you solve the issue.)
相关(Related):程序 exe 或 COM 代理已停止在 Windows 10 中工作(Program exe or COM Surrogate has stopped working in Windows 10)
Program exe won’t open when you click on it in Windows 10
If you are not able to open the .exe file оn your cоmрuter and you see a message Can’t open .exe file, read this article for some suggestions that may help you fix the problem.
Some users upgraded to Windows 10 and experienced not able to open the exe files on their PC. However, some users running Windows 8.1 reported the same error. At the first glance, it seems the problem is related to the corrupted system files or the virus-infected files.
In this guide, we have compiled some quick easy tricks that will help you get out of this mess. So, let’s get started.
Program exe won’t open when you click on it in Windows 10
If you’re not able to run executable files (.exe) on Windows 10, you can try the following suggestions:
- Scan PC with your antivirus software
- Fix broken EXE file association
- Change .exe Value data in Registry Editor
- Use Command Prompt
- Create a new user account
- Run DISM.
Let’s now explain each method in detail.
1] Scan PC with your antivirus software
It is possible that there could be some malicious programs trying to prevent opening the .EXE files when you click on them. That being the case, we recommend you scan your PC with your antivirus
software and see check whether it works or not.
If the antivirus software successfully detects & removes the problem then restart your device to complete the cleaning process.
2] Fix broken EXE file association
Fix broken EXE file association and see if it works. But before you begin, don’t forget to backup your Registry or create a System Restore Point first.
3] Change .exe Value data in Registry Editor
After running the Microsoft Safety scanner tool, if you are still not able to open the .exe file on your computer then you need to reset the registry settings to their default settings. To do this, follow the suggestions below:
To get it started, open the Registry Editor first.
Press the Windows+R keyboard shortcut to open the Run dialog box. Inside the text box, type regedit and press Enter to open the Registry.
If a UAC prompt appears on the screen, click on the Yes button to give your approval.
Inside the Registry Editor window, browse to the following registry key:
HKEY_CLASSES_ROOT\.exe
With .exe selected, double click on Default to edit it. Here the Value data should be “exefile”. So if you have any other data, change it to exefile and then click on the OK button to save it.
Now, again go to the left side of the Registry window and browse to the following registry key:
HKEY_CLASSES_ROOT\exefile
Select the exefile folder and then move to the right pane of the window.
Then double click on the Default string and set the Value data “%1” %*
Now click the OK button to save the changes.
After that, browse to the following registry key:
KEY_CLASSES_ROOT\exefile\shell\open
From the left pane, select the open registry key and then double click on the Default string.
In the dialog box, set the Value data “%1” %* and then click on the OK button to save it.
Once you have done the above changes, close the Registry Editor window and restart your computer.
4] Use Command Prompt
Modifying the registry is dangerous if you don’t know what you’re doing. So, if you’re not okay with it then you can use the Command Prompt to delete the service.
In order to do this, open an elevated Command Prompt with admin rights.
When UAC prompts on the screen, click on the Yes button to grant the administrative privileges
Inside the Command Prompt window, type the below command and hit Enter:
assoc .exe=exefile
After running the above command, see if you now can open the .exe file on your computer.
5] Create a new user account
Create a new user account and check whether you can now open the .exe file on your computer. If it works fine it means the old user account is corrupted.
6] Run DISM tool
Another possible reason behind this issue might be System file corruption. If that is the case, you need to run the DISM command tool to fix any system image corruption and repair the Windows Component Store itself.
To do this, open the Start menu and type Command Prompt. Then right click on the result and select Run as administrator.
If a UAC prompt appears on the screen, click on the Yes button to give your approval.
In the command prompt window, type in the below command line and press the Enter key –
Dism.exe /online /cleanup-image /restorehealth
Wait for a while until the process gets completed. Once it gets completed, restart your computer and check whether it resolves the issue.
That’s it. Let us know which method of this guide helped you solve the issue.
Related: Program exe or COM Surrogate has stopped working in Windows 10