# 设置文件类型关联

在使用 Parallels Desktop 时，您可能需要在某个 Windows 应用程序中打开 macOS 文件或需要在某个 macOS 应用程序中打开 Windows 文件。如果您经常需要这样做，请更改该文件的文件关联。

{% hint style="warning" %}
**注意：**\
1\. 此功能仅在[已安装 Parallels Tools](/pdfm-20-ug-zh_cn/parallels-desktop-for-mac-20-yong-hu-zhi-nan/gao-ji-zhu-ti/an-zhuang-huo-geng-xin-parallels-tools/parallels-tools-for-windows.md) 的 Windows 中可用。\
2\. Parallels Desktop App Store Edition 中不支持此功能。要详细了解 Standard Edition 与 App Store Edition 之间的区别，请点击此[链接](https://kb.parallels.cn/123796)。
{% endhint %}

### **将 macOS 文件与 Windows 应用程序关联**

要让某些类型的 macOS 文件始终在 Windows 应用程序中打开，请执行以下操作：

1. 右击 Finder 中的某个 macOS 文件，指向**打开方式**并单击**其他**。
2. 导航至 **Macintosh HD** > **用户** > <用户名> > **应用程序 (Parallels)**，然后打开所需的虚拟机文件夹。
3. 选择您需要的 Windows 应用程序，然后单击**打开**。
4. Parallels Desktop 显示一条 macOS 通知，询问您是否想要让该应用程序默认打开此类型的文件。单击**确定**。现在，此类型的所有文件都将在选择的 Windows 应用程序中打开。

您还可以通过以下方式让某些类型的 macOS 文件始终在 Windows 应用程序中打开：

1. 右击 macOS 文件并选择**获取信息**。
2. 在**打开方式**部分，单击**打开方式**菜单，然后选择**其他**。
3. 导航至 **Macintosh HD** > **用户** > <用户名> > **应用程序 (Parallels)**，然后打开所需的虚拟机文件夹。
4. 选择您需要的 Windows 应用程序，选择**始终使用选择的程序打开**，然后单击**添加**。
5. 单击**全部更改**，然后关闭文件信息菜单。现在，此类型的所有文件都将在选择的 Windows 应用程序中打开。

### **将 Windows 文件与 macOS 应用程序关联**

对于 Windows 10 和 Windows 11：

要让某些类型的 Windows 文件始终在 macOS 应用程序中打开，请执行以下操作：

1. 右击 Windows 文件并选择**打开方式** > **选择其他应用程序**。
2. 选择您想用来打开该类型文件的 macOS 应用程序，并确保选中**始终使用此应用程序打开 \<file\_extension> 文件**。现在，此类型的所有文件都将在选择的 macOS 应用程序中打开。

对于 Windows 7 和 Windows 8：

要让某些类型的 Windows 文件始终在 macOS 应用程序中打开，请执行以下操作：

1. 右击 Windows 文件并选择**打开方式** > **选择默认应用程序**。
2. 选择您想用来打开该类型文件的 macOS 应用程序，并确保选中**使用此应用程序打开所有 \<file\_extension> 文件**。现在，此类型的所有文件都将在选择的 macOS 应用程序中打开。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.cn/pdfm-20-ug-zh_cn/parallels-desktop-for-mac-20-yong-hu-zhi-nan/gao-ji-zhu-ti/she-zhi-wen-jian-lei-xing-guan-lian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
