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

Gets the auto-save file location

Shogun Post has an auto scene-saving feature which automatically saves your scene after a specified period of time since the last file save performed.

By default, the location for the file is a file called *AutoSave.hdf* in your ShogunPost root directory (e.g. *C:/Program Files/Vicon/ShogunPost#.#/AutoSave.hdf*) unless you change it using the [setAutoSaveFile](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738789) command. Use forward slashes instead of back-slashes for all file system paths.

## Functional area

System

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getAutoSaveFile` |

### Arguments

None

### Flags

None

## Return value

string

Returns the full path to the auto-save file location.

> Macro (scroll-pagebreak)

## Examples

```plaintext
// Set the auto-save file to be "C:/Temp/AutoSaveFile.hdf"
setAutoSaveFile "C:/Temp/AutoSaveFile.hdf";
 
// Now print it out - it should match what we just set it to
string $str = `getAutoSaveFile`;
print $str;
```

# Additional information

## Related commands

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