# Saving files using relative paths

The location for each published file type can be set in the *Output folde*r field.

<figure><img src="https://content.gitbook.com/content/ZSEaukXZvekl0qIsJpTb/blobs/TeJcvoPFzktPF9YHPI9O/image.png" alt=""><figcaption><p>The Output folder settings</p></figcaption></figure>

Different settings are possible, see below.

1. The *Output folder* field is empty (`<empty>`).
   * Files are published to default subdirectories based on the published file type, next to the original files.
2. The *Output folder* is fixed by a user (e.g., `C:\PDF`).
   * Files are published into the specified directory.
3. The *Output folder* = `.\`
   * Files are published in the same directory as the original (source) file.
4. The *Output folder* = `.\DIRECTORYNAME`
   * Files are published in a directory relative to the original (source) file.
5. The *Output folder* = `..\`
   * Files are published in a parent directory relative to the original (source) file.
6. The *Output folder* = `..\DIRECTORYNAME`
   * Files are published in the subdirectory of the parent directory relative to the original (source) file.

<figure><img src="https://content.gitbook.com/content/ZSEaukXZvekl0qIsJpTb/blobs/mPkI22fYiYQrTZF5n9t1/image.png" alt=""><figcaption><p>Example of the Output folder file path settings</p></figcaption></figure>

{% hint style="info" %}
More info is available here: <https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats>
{% endhint %}

## Example of saving files using relative paths

<figure><img src="https://content.gitbook.com/content/ZSEaukXZvekl0qIsJpTb/blobs/J19T4qCmMnMLlhazhXlS/26.1.0_relative_paths.gif" alt=""><figcaption><p>Saving files using relative paths</p></figcaption></figure>
