Components Crossplatform Mac & Win Server Client Old Deprecated Guides Examples Videos
New in version: 9.5 10.0 10.1 10.2 10.3 10.4 10.5 11.0 11.1 11.2 Statistic FMM Blog
Creates an alias or link file.
|Files||8.4||✅ Yes||✅ Yes||❌ No||✅ Yes, on macOS and Windows||✅ Yes|
|AliasFilePath||The path for the alias file path.||"/Users/cs/Desktop/test"|
|TargetPath||The target path to have the alias point to.||"/Users/cs/Desktop"|
|RelativeTo or WorkingPath||The folder path to use relative resolution for Mac or the working directory for Windows.||"/Users/cs"||Optional|
|IconPathAndIndex||The icon file path to use.
Optionally with an index as second item in a value list.
For Windows must reference an exe, ico, dll or similar file containing resources with icons.
For MacOS a path to an image file where we load image and use it for the icon.
|"C:\Program Files\Mozilla Firefox\firefox.exe¶4"||Optional|
Returns OK or error.
DescriptionCreates an alias or link file.
If relative path is provided, the alias will include the relative path from that folder to the target item. When resolved later and the full path is invalid, the relative path may find it.
See Files.CreateSymbolicLink for creating symbol links and Files.CreateHardLink for hard links.
Testing in macOS Catalina shows for us, that the icon can be added, but the Finder does not display it.
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.
Creates link files on Windows:
Create link for image file:
Create link file with icon on Windows:
- Version 9.2
- Added new parameter for Files.CreateAlias to specify icon for the alias/link file.
- Version 8.4
Created 9th September 2018, last changed 28th September 2020
Feedback: Report problem or ask question.
MBS FileMaker blog