> ## 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.

# AddNew Method of the HotFolderProfiles Object

This method adds a hot folder profile with the specified name at the end of the collection.

## Syntax

```vb Visual Basic .NET theme={null}
Function AddNew( _
  Name As String, _
  Folder As String _
) As HotFolderProfile
```

```cpp C++ theme={null}
HRESULT AddNew(
  BSTR                Name,
  BSTR                Folder,
  IHotFolderProfile** Result
);
```

## Parameters

**Name**

\[in] This variable contains the name of the profile.

**Folder**

\[in] This variable specifies the path to the hot folder.

**Result**

\[out, retval] A pointer to the [**IHotFolderProfile**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/hotfolderprofile.md)**\*** variable that receives the interface pointer for the added profile.

## 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

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