---
title: "setTempFolderPath"
canonical: "https://help.vicon.com/space/ShogunPost121/1253738508/setTempFolderPath"
format: markdown
---
# Description

Enables you to set the location of the temporary folder (ie, the location of the **Temp directory** in Preferences > Directories > Scripts).

Ensure the folder that you specify exists and use forward slashes instead of backslashes for all file and directory paths.

## Functional area

System

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `setTempFolderPath "savePath"` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `savePath` | string | yes | The path of the Temp folder |

### Flags

None

## Return value

void

## Examples

```plaintext
// Set a temporary directory named MyFolder
setTempFolderPath "C:/MyFolder/";
```

# Additional information

## Related commands

- [getTempFolderPath](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737413)