Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Queries path to user's desktop folder.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Folders | 4.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
none
Returns path or error.
Queries path:
MBS( "Folders.UserDesktop" )
Create folder on Desktop:
Set Variable [$folder; Value:MBS( "Folders.UserDesktop" )]
If [IsEmpty(Container Export::Name)]
Set Field [Container Export::Name; "Record " & Get(RecordID)]
End If
Set Variable [$path; Value:MBS( "Path.AddPathComponent"; $folder; Container Export::Name )]
Set Variable [$r; Value:MBS("Files.CreateDirectory"; $path)]
Get file in desktop folder:
Set Variable [$folder; Value:MBS( "Folders.UserDesktop" )]
Set Variable [$path; Value:MBS( "Path.AddPathComponent"; $folder; "test.txt" )]
This function is free to use.
Created 18th August 2014, last changed 4th June 2023