> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Rename Method of the Batch Object

This method changes the batch name and returns the new name. The name may not change, for example, if you specify an existing name.

## Syntax

```vb Visual Basic .NET theme={null}
Function Rename(Name As String) As String
```

```cpp C++ theme={null}
HRESULT Rename(
  BSTR         Name,
  BSTR*        ResultName
);
```

## Parameters

**Name**

\[in] The new name of the batch.

**ResultName**

\[out, retval] A pointer to the string variable which receives the new name of the batch.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md)
