DirectoryWatcher.GetFileName
----------------------------

Returns the file name for the watcher.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DirectoryWatcher](component_DirectoryWatcher.md) | [7.1](newinversion71.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "DirectoryWatcher.GetFileName"; Watcher ) 

**MBS**( **"DirectoryWatcher.GetFileName";** /\* Returns the file name for the watcher. \*/  
**$Watcher**) /\* The watcher reference number. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Watcher | The watcher reference number. | $watcher |

### Result

Returns text or error.

### Description

Returns the file name for the watcher.  
### See also

- [DirectoryWatcher.GetEvaluate](DirectoryWatcherGetEvaluate.md)
- [DirectoryWatcher.GetScriptName](DirectoryWatcherGetScriptName.md)
- [DirectoryWatcher.Release](DirectoryWatcherRelease.md)
- [DirectoryWatcher.SetEvaluate](DirectoryWatcherSetEvaluate.md)
- [DirectoryWatcher.SetFileName](DirectoryWatcherSetFileName.md)
- [DirectoryWatcher.SetScriptName](DirectoryWatcherSetScriptName.md)

This function is free to use.

Created 5th March 2017 , last changed 5th March 2017

  
[DirectoryWatcher.GetEvaluate](DirectoryWatcherGetEvaluate.md) - [DirectoryWatcher.GetScriptName](DirectoryWatcherGetScriptName.md)

[HTML Version](DirectoryWatcherGetFileName.shtml)