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: 11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5    Statistic    FMM    Blog  

Files.RevealFile

Reveals the file/folder in the shell.

Component Version macOS Windows Linux Server iOS SDK
Files 2.7 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Files.RevealFile"; Path )   More

Parameters

Parameter Description Example
Path Native path to the item to reveal. "C:\Windows"

Result

Returns "OK" or error.

Description

Reveals the file/folder in the shell.
Shows file or folder in Finder or opens directory in Explorer.
With version 6.3 the Mac plugin can take a list of paths here.

To open a folder, please use Files.LaunchFile function.

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.

Examples

Reveal 3 items:

MBS( "Files.RevealFile"; "/Users/cs/Public¶/Users/cs/Music¶/Users/cs/Library" )

Open desktop folder on Windows:

MBS("Files.RevealFile"; "C:\Users\Administrator\Desktop")

Show file in explorer window:

MBS("Files.RevealFile"; "C:\Users\Christian\Desktop\Test\test.txt")

See also

Release notes

Example Databases

Blog Entries

Created 18th August 2014, last changed 22nd August 2022


Files.ResolveBookmark - Files.SetAudioTags

Feedback: Report problem or ask question.


Start Chat