---
title: "setButtonShelfFile"
canonical: "https://help.vicon.com/space/Shogun18/13667965/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. |

## Return value

void

## Examples

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

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [setAutoSaveFile](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13667971)
- [setLogFile](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668131)
- [setMarkingMenuFile](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668127)