---
title: "Opret mappe"
description: "F\u00F8lgende Invantive Script-s\u00E6tning sikrer, at en mappestruktur findes."
language: da
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/da/docs/invantive-script/statements/create-directory
original: https://documentation.invantive.eu/en/docs/invantive-script/statements/create-directory
updated: 2026-12-04T08:45:41Z
license: https://documentation.invantive.eu/da/
---

# Syntaks
Følgende Invantive Script-sætning sikrer, at en mappestruktur findes:
```
local create directory "FOLDER-PATH"
```
Alle mapper i mappestien oprettes, hvis de ikke allerede findes. Der foretages ingen ændringer, når en mappestruktur allerede findes helt.

# Eksempler
Opret en mappe med navnet `c:\temp`:
```
local create directory "c:\temp"
```
Opret alle elementer i mappestrukturen `c:\temp\step2\step3` ved hjælp af en variabel defineret med [[Define]]:
```
local define ROOT_PATH "c:\temp\step2\step3"

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