Files.FileDisplayName
---------------------

Queries the display name of the file or folder.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [2.9](newinversion29.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Files.FileDisplayName"; Path ) 

**MBS**( **"Files.FileDisplayName";** /\* Queries the display name of the file or folder. \*/  
**$Path**) /\* Native path to the file to check.e.g. "C:\\test\\me.jpg" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | Native path to the file to check. | "C:\\test\\me.jpg" |

### Description

Queries the display name of the file or folder.  
This name may be localized and may not include file extension. Only for displaying.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use [FileDialog](component_FileDialog.md) functions.  
For Server be aware that server has limited permissions and may not be able to access all files on a computer.  
### Examples

Queries display name of a file

 MBS ( "Files.FileDisplayName"; "C:\\test.txt" )  
Query localized name for desktop folder:

 MBS ("Files.FileDisplayName" ; "/Users/cs/Desktop" )  
<small>  
Example result: "Schreibtisch"</small>Get name of disk on macOS:

 MBS ( "Files.FileDisplayName"; "/" )  
### See also

- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

### Example Databases

- [Files/FileInfo](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/FileInfo.shtml#1ScriptAnchor_)
- [Mac only/MetaDataQuery/Search Applications](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/MetaDataQuery/Search%20Applications.shtml#1ScriptAnchor_)

### Blog Entries

- [Spotlight search in FileMaker with MBS Plugin](https://www.mbsplugins.de/archive/2017-12-16/Spotlight_search_in_FileMaker_/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.9pr3](https://www.mbsplugins.de/archive/2012-08-19/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 4/2020, Seite 33](https://filemaker-magazin.de/neuigkeit/4103-Appetithappen-FMM_202004)

This function checks for a license.

Created 18th August 2014 , last changed 15th November 2024

  
[Files.EvictUbiquitousItem](FilesEvictUbiquitousItem.md) - [Files.FileExists](FilesFileExists.md)

[HTML Version](FilesFileDisplayName.shtml)