Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Files.ResolveAlias
Resolves an alias file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Files | 8.4 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ✅ Yes |
MBS( "Files.ResolveAlias"; AliasFilePath { ; RelativeTo } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
AliasFilePath | The path for the alias file path. | "/Users/cs/Desktop/test" | |
RelativeTo | The folder path to use relative resolution. | "/Users/cs" | Optional |
Result
Returns file path or error.
Description
Resolves an alias file.See Files.CreateAlias to create alias files on Mac or link files on Windows, Files.CreateHardLink and Files.CreateSymbolicLink for creating links in file system.
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
Resolve Alias:
MBS( "Files.ResolveAlias"; "/Users/cs/Desktop/test")
Resolve link file on Windows:
MBS("Files.ResolveAlias"; "C:\Users\Christian\Desktop\test.lnk")
See also
Release notes
- Version 14.3
- Improved Files.ResolveAlias function to handle symbolic links, too.
- Version 8.4
- Added Files.CreateAlias and Files.ResolveAlias functions.
Blog Entries
This function checks for a license.
Created 9th September 2018, last changed 9th September 2018