问题描述
今天,我失去了Delphi-2007协会;有什么方法可以在不运行Delphi安装程序的情况下还原我的Delphi文件关联(.pas,.dpk等)?
Today I lost my Delphi-2007 associations; does any way exist to restore my Delphi file associations (.pas, .dpk, etc) without running the installer of Delphi?
推荐答案
在命令提示符下键入 assoc /?
。这将向您展示如何将文件扩展名与文件类型相关联。
Type assoc /?
at a command prompt. This will show you how to associate file extensions with file types.
如果基本注册表未损坏,则可以使用 assoc * .pas BSD .pasfile
重新将Delphi 2007与Pascal源文件连接。对其他文件类型重复上述操作以重新连接它们:
If the basic registry is not corrupted, you can use assoc *.pas BSD.pasfile
to reconnect Delphi 2007 with Pascal source files. Repeat the above with the other file types to reconnect them:
assoc *.dpk BDS.dpkfile
assoc *.dfm BDS.dfmfile
依此类推。
如果这工作太多,请使用D2007安装程序中的注册表修复选项。
If this is too much work, use the registry repair option in the D2007 installer.
这篇关于如何在不重新安装IDE的情况下还原我的Delphi关联?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!