---
title: "Create Directory"
description: "\u6B21\u306EInvantive Script\u30B9\u30C6\u30FC\u30C8\u30E1\u30F3\u30C8\u306F\u3001\u30D5\u30A9\u30EB\u30C0\u30FC\u69CB\u9020\u304C\u5B58\u5728\u3059\u308B\u3053\u3068\u3092\u4FDD\u8A3C\u3057\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/docs/invantive-script/statements/create-directory
original: https://documentation.invantive.eu/en/docs/invantive-script/statements/create-directory
updated: 2026-12-04T08:45:44Z
license: https://documentation.invantive.eu/ja/
---

# 構文
次のInvantive Scriptステートメントは、フォルダー構造が存在することを保証します:
```
local create directory "FOLDER-PATH"
```
フォルダーパス内のすべてのフォルダーは、まだ存在しない場合に作成されます。 フォルダー構造が既に完全に存在する場合、変更は行われません。

# 例
`c:\temp`という名前のフォルダーを作成します:
```
local create directory "c:\temp"
```
[[Define]]を使用して定義された変数を使い、フォルダー構造`c:\temp\step2\step3`のすべての要素を作成します:
```
local define ROOT_PATH "c:\temp\step2\step3"

local create directory "${ROOT_PATH}"
```
