Process.GetCurrentDirectory
---------------------------

Queries current directory.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Process](component_Process.md) | [6.5](newinversion65.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Process.GetCurrentDirectory" ) ### Parameters

none

### Result

Returns path or error.

### Description

Queries current directory.  
Some OS functions look for files relative to this folder.  
  
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.  
For Server be aware that server has limited permissions and may not be able to access all files on a computer.  
### Examples

Query current directory:

 MBS ( "Process.GetCurrentDirectory")  
### See also

- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)
- [Process.SetCurrentDirectory](ProcessSetCurrentDirectory.md)
- [Shell.GetCurrentDirectory](ShellGetCurrentDirectory.md)
- [Shell.SetCurrentDirectory](ShellSetCurrentDirectory.md)

### Release notes

- **Version 15.3**
    - Fixed a possible crash in [Process.GetCurrentDirectory](https://www.mbsplugins.eu/ProcessGetCurrentDirectory.shtml) function for macOS, iOS and Linux.
- **Version 15.2**
    - Fixed a bug in [Process.GetCurrentDirectory](https://www.mbsplugins.eu/ProcessGetCurrentDirectory.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 15.3pr1](https://www.mbsplugins.de/archive/2025-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.2pr2](https://www.mbsplugins.de/archive/2025-04-07/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.5pr6](https://www.mbsplugins.de/archive/2016-11-08/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 8th November 2016 , last changed 8th November 2016

  
[Process.FrontWindowTitle](ProcessFrontWindowTitle.md) - [Process.GetDllDirectory](ProcessGetDllDirectory.md)

[HTML Version](ProcessGetCurrentDirectory.shtml)