Files.ShareFile
---------------

Shows the share panel for Windows.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [15.1](newinversion151.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Files.ShareFile"; Path ) 

**MBS**( **"Files.ShareFile";** /\* Shows the share panel for Windows. \*/  
**$Path**) /\* The native file path. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The native file path. | $Path |

### Result

Returns OK or error.

### Description

Shows the share panel for Windows.  
Requires Windows 8 or newer.  
  
What Windows can share and what application it offers depends on the local software installation on the PC.  
e.g. if you have an email application, you may see contact names and the option to send an email.  
  
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.  
### Examples

Share this file:

 Set Variable \[$r ; Value: MBS ( "Files.ShareFile"; "C:\\Users\\Christian\\Desktop\\test.txt" ) \]  
### See also

- [Files.MoveFile](FilesMoveFile.md)
- [Files.ReadFile](FilesReadFile.md)
- [Files.RenameFile](FilesRenameFile.md)
- [Files.WriteFile](FilesWriteFile.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

### Release notes

- **Version 15.1**
    - Added [Files.ShareFile](https://www.mbsplugins.eu/FilesShareFile.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin 15.1 News](https://www.mbsplugins.de/archive/2025-03-19/MBS_FileMaker_Plugin_151_News/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 15.1 für Claris FileMaker](https://www.mbsplugins.de/archive/2025-03-11/Neues_MBS_FileMaker_Plugin_151/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 15.1 for Claris FileMaker](https://www.mbsplugins.de/archive/2025-03-11/MBS_Plugin_151_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.1pr3](https://www.mbsplugins.de/archive/2025-02-12/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st February 2025 , last changed 12nd February 2025

  
[Files.SetUserImmutable](FilesSetUserImmutable.md) - [Files.ShowPropertyDialog](FilesShowPropertyDialog.md)

[HTML Version](FilesShareFile.shtml)