Reference > Functions reference > Get functions > Get(FilePath)
 

Get(FilePath)

Returns the full path of the location of the currently active file.

Format 

Get(FilePath)

Parameters 

None

Data type returned 

text

Originated in 

FileMaker Pro 6.0 or earlier

Description 

In Windows, the full path is file:/drive:/folder/filename for local files. For remote files, the full path is file://volume/folder/filename.

In macOS, the full path is file:/volume/folder/filename for local and remote files.

If you specify the context for the current calculation, this function will be evaluated based on that context; otherwise, it will be evaluated based on the context of the current window.

Example 1 

Returns file:/C:/Users/Username/Documents/Clients.fmp12 for a local file in Windows.

Returns file:/Sharename/Documents/Clients.fmp12 for remote files in Windows.

Returns file:/Macintosh HD/Users/Username/Documents/Clients.fmp12 for a local file in macOS.

Returns fmnet:/192.168.10.10/Clients.fmp12 for a FileMaker Pro Advanced networked file.

Each part of the path may vary from these examples, so don't rely on the path to follow a particular pattern.

Related topics 

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas