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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Creates an alias or link file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Files | 8.4 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
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.
Create Alias:
MBS( "Files.CreateAlias"; "/Users/cs/Desktop/test"; "/Users/cs/Desktop" )
Creates link files on Windows:
MBS("Files.CreateAlias"; "C:\Users\Christian\Desktop\test.lnk"; "cmd.exe")
Create link for image file:
MBS("Files.CreateAlias"; "C:\Users\Christian\Desktop\test.lnk"; "C:\Users\Christian\Pictures\test.jpg")
Create link file with icon on Windows:
MBS("Files.CreateAlias"; "C:\Users\Christian\Desktop\test.lnk"; "cmd.exe"; ""; "C:\Program Files\Mozilla Firefox\firefox.exe¶4")
Created 9th September 2018, last changed 28th September 2020
Files.CopyFiles - Files.CreateBookmark
Feedback: Report problem or ask question.