---
title: "setSavePath"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737217/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/ShogunPost121/pages/1253736594) 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

> Macro (scroll-tablelayout)

|  |
| --- |
| `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

> Macro (16dcb1b2-c6fb-4c23-a096-38455b87e6a8/1fa5e51a-a28e-46e1-9b5c-734b339f025f/static/scroll-pagebreak)

## 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/ShogunPost121/pages/1253736594)