---
title: "createDir"
canonical: "https://help.vicon.com/space/Shogun111/13207716/createDir"
format: markdown
---
# Description

Creates a file system directory/folder, including all the folders that are necessary to satisfy the path to the directory. This command doesn't fail, but returns false if it can't create the directory.

## Functional area

System

# Command syntax

## Syntax

|  |
| --- |
| `createDir "folderPath"` |

### Arguments

> Macro (scroll-tablelayout)

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `folderPath` | string | yes | Path to the folder to create. Use forward slashes. |

### Flags

None

## Return value

boolean

Returns true if the directory was successfully created, or false if it wasn`t.

## Examples

```plaintext
// Create a folder on your D: drive. The final
// folder will be called "Path"
createDir "D:/Some/Long/Folder/Path/";
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [pathExists](https://vicon-help.atlassian.net/wiki/spaces/Shogun111/pages/13208226)
- [setDir](https://vicon-help.atlassian.net/wiki/spaces/Shogun111/pages/13208430)