Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Files.MountPath
Queries mount path for a volume.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Files | 8.3 | Yes | Yes | No | Yes | No |
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 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 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" )
Example result: "smb://cs@Server._smb._tcp.local/Macbook%20Pro"
Query mount path on Windows:
MBS( "Files.MountPath"; "Z:")
Example result: "\\vmware-host\Shared Folders"
See also
Blog Entries
Release notes
- Version 8.3
- Added Files.MountPath function.
Created 1st June 2018, last changed 2nd June 2018
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins