Files.RevealFile
----------------

Reveals the file/folder in the shell.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [2.7](newinversion27.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Files.RevealFile"; Path ) 

**MBS**( **"Files.RevealFile";** /\* Reveals the file/folder in the shell. \*/  
**$Path**) /\* Native path to the item to reveal.e.g. "C:\\Windows" \*/ 

### 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](FilesLaunchFile.md) function.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) 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](component_FileDialog.md) 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

- [Files.Launch](FilesLaunch.md)
- [Files.LaunchFile](FilesLaunchFile.md)
- [Files.MoveFile](FilesMoveFile.md)
- [Files.ReadFile](FilesReadFile.md)
- [Files.RenameFile](FilesRenameFile.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

### Release notes

- **Version 12.4**
    - Rewrote [Files.RevealFile](https://www.mbsplugins.eu/FilesRevealFile.shtml) for Windows to select a file.

### Example Databases

- [Files/Launch](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/Launch.shtml#1GroupButton138.0000000422.0000000163.0000000617.0000000LayoutObjectAnchor_)

### Blog Entries

- [Neues MBS Plugin 12.4 für Claris FileMaker](https://www.mbsplugins.de/archive/2022-09-06/Neues_MBS_Plugin_124_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 12.4 for Claris FileMaker](https://www.mbsplugins.de/archive/2022-09-06/MBS_Plugin_124_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.4pr3](https://www.mbsplugins.de/archive/2022-08-24/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 6.3 for OS X/Windows](https://www.mbsplugins.de/archive/2016-07-12/MBS_FileMaker_Plugin_63_for_OS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.3pr1](https://www.mbsplugins.de/archive/2016-06-01/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.7fc](https://www.mbsplugins.de/archive/2012-05-08/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin 2.7 Release notes](https://www.mbsplugins.de/archive/2012-05-08/MBS_Filemaker_Plugin_27_Releas/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.7pr1](https://www.mbsplugins.de/archive/2012-03-26/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[Files.ResolveBookmark](FilesResolveBookmark.md) - [Files.SetAudioTags](FilesSetAudioTags.md)

[HTML Version](FilesRevealFile.shtml)