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

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

## Functional area

Interface

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

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

### Arguments

> Macro (scroll-tablelayout)

| 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/ShogunPost121/pages/1253738789)
- [setLogFile](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739647)
- [setMarkingMenuFile](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736831)