Files.MountPath
---------------

Queries mount path for a volume.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [8.3](newinversion83.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

MBS( "Files.MountPath"; Disk ) 

**MBS**( **"Files.MountPath";** /\* Queries mount path for a volume. \*/  
**$Disk**) /\* Path native path to disk drive.e.g. "E:" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Disk | Path native path to disk drive. | "E:" |

### Result

Returns mount URL, empty or error.

### Description

Queries mount path for a volume.  
For a network mounted disk, you can query the original mount point.  
May not work on Mac for AFP shares, but for SMB shares.  
Returns empty path if no path is known.  
  
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

Query mount path on MacOS:

 MBS ( "Files.MountPath"; "/Volumes/Macbook Pro" )  
<small>  
Example result: "smb://cs@Server.\_smb.\_tcp.local/Macbook%20Pro"</small>Query mount path on Windows:

 MBS ( "FIles.MountPath"; "Z:")  
<small>  
Example result: "\\\\vmware-host\\Shared Folders"</small>### See also

- [Files.Mount](FilesMount.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

### Release notes

- **Version 8.3**
    - Added [Files.MountPath](http://www.mbsplugins.eu/FilesMountPath.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 8.3pr1](https://www.mbsplugins.de/archive/2018-06-04/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 1st June 2018 , last changed 2nd June 2018

  
[Files.Mount](FilesMount.md) - [Files.MoveFile](FilesMoveFile.md)

[HTML Version](FilesMountPath.shtml)