Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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

This function checks for a license.

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


Files.ResolveBookmark - Files.SetAudioTags