---
title: "setSavePath"
canonical: "https://help.vicon.com/space/Shogun114/196384702/setSavePath"
format: markdown
---
# Description

Sets the default directory that Shogun Post's **Open** and **Save As** dialog boxes initialize to, or the default directory of the **Export** dialog if the `-e` flag is specified.

Shogun Post's **Open** and **Save** dialog boxes share their default values. However, the **Import** and **Export** dialog boxes have different default values. The values of these may be retrieved using the [getSavePath](https://vicon-help.atlassian.net/wiki/spaces/Shogun114/pages/196386047) command. The values get updated whenever you use the dialog boxes.

Use forward slashes instead of back-slashes for all file and directory paths.

## Functional area

System

# Command syntax

## Syntax

|  |
| --- |
| `setSavePath "savePath"[-e]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `savePath` | string | yes | The path files should be saved to |

### Flags

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `e` | 0 | — | — | — |

## Return value

void

## Examples

```plaintext
// Make the export dialog default to the temp directory
setSavePath -e "C:/Temp/";
```

# Additional information

## Related commands

- [getSavePath](https://vicon-help.atlassian.net/wiki/spaces/Shogun114/pages/196386047)