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

Returns the path of the **Temp directory**, which is set by [setTempFolderPath](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738508) (or in Preferences > Directories > Scripts) and is displayed in the Preferences dialog.

## Functional area

Data Retrieval

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getTempFolderPath` |

### Arguments

None

### Flags

None

## Return value

string

Returns the full path of the Temp directory.

## Examples

```plaintext
// Returns the path of the Temp folder 
// and prints it to the log
string $str = `getTempFolderPath`;
print $str;
```

# Additional information

## Related commands

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