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

Add one or more files that you specify to a batch process. If the specified file does not exist on disk, Shogun Post logs an error message.

This command is recordable in the Shogun Post Script Editor.

## Functional area

Batching

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `addBatchFile "file1" "file2" ...` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `"file1", "file2", etc` | string or string array | yes | The name(s) of the file(s) to add to the batch process |

### Flags

None

## Return value

void

> Macro (16dcb1b2-c6fb-4c23-a096-38455b87e6a8/1fa5e51a-a28e-46e1-9b5c-734b339f025f/static/scroll-pagebreak)

# Additional info

## Related commands

- [cancelBatch](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738374)
- [isBatching](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738912)
- [removeAllBatchFiles](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738023)
- [removeBatchFile](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738474)
- [setBatchMode](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738481)
- [startBatch](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738280)