大网数据广告活动
启动与系统组件

Can't associate a program with an extension

· 52CE 我爱测

You can't associate a program with an extension in Windows 7 because the program that you're pointing to isn't registered correctly.

This article provides a solution to an issue where you're unable to associate a file extension to an application in Windows 7.

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

Symptoms

You may not be able to associate a file extension to an application in Windows 7.

Cause

This may occur if the program you are attempting to associate with is not registered correctly.

Resolution

Follow the steps below:

  1. Type regedit in the Run line or from an elevated CMD prompt.
  2. Navigate to Computer\HKEY_CLASSES_ROOT\Applications and find your .exe name.
  3. Navigate under its name to shell> open> command.
  4. Under Default, make sure the application location points to the actual location of the executable.
  5. Press OK and then try to reassociate the file type as you normally would.

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)

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

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