Files.FileNameWithoutExtension
------------------------------

Queries file name without extension.

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

MBS( "Files.FileNameWithoutExtension"; Path ) 

**MBS**( **"Files.FileNameWithoutExtension";** /\* Queries file name without extension. \*/  
**$Path**) /\* The path to a file.e.g. "/Users/test/Desktop/some picture.png" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The path to a file. | "/Users/test/Desktop/some picture.png" |

### Result

Returns text or error.

### Description

Queries file name without extension.  
Like [Files.FileName](FilesFileName.md), but removes extension.  
### Examples

Try it on macOS:

 MBS ( "Files.FileNameWithoutExtension"; "/Users/test/Desktop/some picture.png" )  
### See also

- [Files.FileName](FilesFileName.md)

### Release notes

- **Version 12.2**
    - Fixed an edge case for [Files.FileNameWithoutExtension](https://www.mbsplugins.eu/FilesFileNameWithoutExtension.shtml), where the path contains no slashes.
- **Version 11.2**
    - Fixed [Files.FileName](https://www.mbsplugins.eu/FilesFileName.shtml) and [Files.FileNameWithoutExtension](https://www.mbsplugins.eu/FilesFileNameWithoutExtension.shtml) to work on macOS in case you pass Windows path.
- **Version 11.1**
    - Added [Files.FileNameWithoutExtension](https://www.mbsplugins.eu/FilesFileNameWithoutExtension.shtml) function.

### Blog Entries

- [MBS Plugin Advent calendar: 12 - Files](https://www.mbsplugins.de/archive/2023-12-12/MBS_Plugin_Advent_calendar_12_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.2pr4](https://www.mbsplugins.de/archive/2022-04-28/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.2pr3](https://www.mbsplugins.de/archive/2021-04-14/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.1](https://www.mbsplugins.de/archive/2021-03-16/MBS_FileMaker_Plugin_111/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.1pr2](https://www.mbsplugins.de/archive/2021-02-05/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 5th February 2021 , last changed 5th February 2021

  
[Files.FileName](FilesFileName.md) - [Files.FileSize](FilesFileSize.md)

[HTML Version](FilesFileNameWithoutExtension.shtml)