---
title: "getAutoSaveFile"
canonical: "https://help.vicon.com/space/Shogun19/13796034/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/Shogun19/pages/13796548) command. Use forward slashes instead of back-slashes for all file system paths.

## Functional area

System

# Command syntax

## Syntax

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

### Arguments

None

### Flags

None

## Return value

string

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

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

> Macro (scroll-pagebreak)

# Additional information

## Related commands

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