# FilePath
{: .no_toc }

Returns a **String** containing the full file path of the file that was opened. Read-only.

Syntax: *object*.**FilePath**

*object*
: *required* An object expression that evaluates to a **FileProperties** object.

The value is the full path of the file that was passed to [**FilePropertyExplorer.OpenFile**](/tB/Packages/Contributed/FileProps/FilePropertyExplorer/OpenFile.md) or selected through [**FilePropertyExplorer.BrowseAndOpenFile**](/tB/Packages/Contributed/FileProps/FilePropertyExplorer/BrowseAndOpenFile.md) when the **FileProperties** collection was created.

### Example

This example opens a file and prints its path and property count to the Debug console.

```tb check_build
Dim fp As FileProperties
Set fp = FilePropertyExplorer.OpenFile("C:\Users\Public\sample.mp3")
Debug.Print "File: " & fp.FilePath
Debug.Print "Properties: " & fp.Count
```

### See Also

- [FileProperties](/tB/Packages/Contributed/FileProps/FileProperties/index.md) class
- [Count](/tB/Packages/Contributed/FileProps/FileProperties/Count.md) property
- [Item](/tB/Packages/Contributed/FileProps/FileProperties/Item.md) property
- [OpenFile](/tB/Packages/Contributed/FileProps/FilePropertyExplorer/OpenFile.md) method
- [BrowseAndOpenFile](/tB/Packages/Contributed/FileProps/FilePropertyExplorer/BrowseAndOpenFile.md) method
