Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

Folders.UserDesktop

Queries path to user's desktop folder.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Folders 4.3 Yes Yes Yes No Yes

MBS( "Folders.UserDesktop" )

Parameters

none

Result

Returns path or error.

Description

Queries path to user's desktop folder.
This is a native path. You can use Path.NativePathToFileMakerPath if you need to use path in a script step.

For FileMaker Server it is possible to not have a desktop folder or to have it on a different location than normal user accounts.

Examples

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)]

See also

Example Databases


Folders.SystemTemporary   -   Folders.UserDocuments

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins