Shell.GetCurrentDirectory
-------------------------

Queries current directory path.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Shell](component_Shell.md) | [7.5](newinversion75.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Shell.GetCurrentDirectory"; ShellRef ) 

**MBS**( **"Shell.GetCurrentDirectory";** /\* Queries current directory path. \*/  
**$ShellRef**) /\* The reference number from the shell.e.g. $shell \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ShellRef | The reference number from the shell. | $shell |

### Result

Returns path or error.

### Description

Queries current directory path.  
This is the native path to use as current directory for the child process.  
### See also

- [Process.GetCurrentDirectory](ProcessGetCurrentDirectory.md)
- [Process.SetCurrentDirectory](ProcessSetCurrentDirectory.md)
- [Shell.SetCurrentDirectory](ShellSetCurrentDirectory.md)

This function is free to use.

Created 11st November 2017 , last changed 11st November 2017

  
[Shell.GetCompletedScriptName](ShellGetCompletedScriptName.md) - [Shell.GetDataAvailableEvaluate](ShellGetDataAvailableEvaluate.md)

[HTML Version](ShellGetCurrentDirectory.shtml)