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 version 

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.

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 networked file.

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