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

Retrieves the title portion of a file path, excluding the extension

For example, for `"c:/temp/take25.c3d"`, "take25" will be returned.

## Functional area

System

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getFileTitle "filePath"` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `filePath` | string | yes | Full path to the file to get the title for. |

### Flags

None

## Return value

string

Returns the file title, which is the file name minus the extension.

## Examples

```plaintext
// Get the title of a file path. 
string $title;
string $path = "c:/temp/take25.c3d";
$title = `getFileTitle $path`;
print $title;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [getFileExtension](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737277)
- [getFileLocation](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736503)
- [getFileName](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738742)