---
title: "setButtonShelfFile"
canonical: "https://help.vicon.com/space/Shogun112/31228946/setButtonShelfFile"
format: markdown
---
# Description

Sets the file where Shogun Post loads and saves your button shelves.

## Functional area

Interface

# Command syntax

## Syntax

|  |
| --- |
| `setButtonShelfFile ButtonShelfFile [-save]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `ButtonShelfFile` | string | yes | Name of the file whereShogun Post loads and saves your button shelves. |

### Flags

> Macro (scroll-tablelayout)

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `save` | 0 | — | — | Causes the current button shelf to be saved to the given file. If not specified, then the button shelves in the file will be loaded. |

> Macro (scroll-pagebreak)

## Return value

void

## Examples

```plaintext
// Save your button shelves to the root of your C: drive 
setButtonShelfFile "C:/MyButtonShelf.hsl" -save;
```

# Additional information

## Related commands

- [setAutoSaveFile](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31240420)
- [setLogFile](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31235741)
- [setMarkingMenuFile](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31228729)