Get(DesktopPath)

Returns the path to the desktop folder for the current user.

Format 

Get ( DesktopPath )

Parameters 

None

Data type returned 

text

Originated in version 

8.0

Description 

In Windows, the path format is /Drive:/Users/UserName/Desktop/.

In macOS, the path format is /DriveName/Users/username/Desktop/.

Notes 

  • This function is supported only in FileMaker Pro. In other FileMaker products, it’s not supported and returns an empty string.
  • The returned path is in FileMaker format but doesn’t include a path prefix. See About path prefixes.

Example 1 

Returns /C:/Users/John Smith/Desktop/ for a user named John Smith in Windows.

Returns /Macintosh HD/Users/johnsmith/Desktop/ for a user named John Smith in macOS.

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

For an example script, see Get Folder Path script step.