Back to Blog
Arnošt Havelka

Create Directories in PowerShell

Build directory structures with New-Item.

Start Interactive Lesson
Create Directories in PowerShell

Create Directories in PowerShell

The New-Item command can also create directories. Learn to organize your file system with folders.

Creating Directories

Usage:New-Item -Path [dirname] -ItemType Directory
Create a single directory

Directory Creation

Command Prompt
documents.txt
C:\Users\User>ls

Knowledge Check

1 / 1

How do you create a directory named 'data'?

References

These Microsoft Learn and Windows documentation links provide authoritative details for the commands used in this article.

Up Next

Copy Files in PowerShell

Duplicate files using Copy-Item.