大网数据广告活动
性能与资源

Running an.exe file starts different program

· 52CE 我爱测

Describes a problem in which you run an .exe file and the file starts a different program. A resolution is provided.

This article provides a solution to an issue where the file may start a different program when you run an .exe file in Windows 7.

Applies to:   Windows 7 Service Pack 1
Original KB number:   950505

Symptoms

When you run an .exe file in Windows 7, the file may start a different program. Additionally, the icon for the .exe file may not appear as expected. You may also receive additional errors from the .exe file or from the program that starts.

Resolution

Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.

To resolve this problem, reset the registry subkey for the file association of the .exe file back to the default setting. To do this, follow these steps:

  1. To open the Task Manager, press CTRL + SHIFT + ESC.

  2. Click File, press CTRL and click New Task (Run...) at the same time. A command prompt opens.

    :::image type="content" source="media/running-exe-starts-another-program/new-task-run-option.png" alt-text="Screenshot of New Task (Run...) option of the File menu in Windows Task Manager.":::

  3. At the command prompt, type notepad, and then press ENTER.

    :::image type="content" source="media/running-exe-starts-another-program/enter-notepad.png" alt-text="Screenshot shows notepad is typed in command prompt.":::

  4. Paste the following text into Notepad:

    Windows Registry Editor Version 5.00
    
    [-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):
    
  5. On the File menu, click Save as.

    :::image type="content" source="media/running-exe-starts-another-program/save-as-file.png" alt-text="Screenshot of the Save As option under the File menu.":::

  6. Select All Files in the Save as type list, and then type Exe.reg in the File name box.

  7. Select Unicode in the Encoding list. Save it and remember the file location.

    :::image type="content" source="media/running-exe-starts-another-program/save-exe-reg-file.png" alt-text="Screenshot of the Save As dialog box to save the notepad file as Exe.reg file format." border="false":::

  8. Return to the Command Prompt window, type REG IMPORT <filepath> Exe.reg, and then press ENTER.

    :::image type="content" source="media/running-exe-starts-another-program/enter-reg-import-exe-reg-file.png" alt-text="Screenshot of the REG IMPROT command in command prompt.":::

    [!NOTE] <filepath> is a placeholder which is to input your Exe.reg file location (for example, C:\Exe.reg).

  9. Click Yes, and then click OK in response to the registry prompts.

  10. Log off from your account. Then, log back on to your account.

Note:

  • You may have to restart the computer to restore the program icons to their original appearance.
  • After the problem is resolved, delete the Exe.reg file so that it is not mistakenly added back to the registry at a later date.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。