PowerShell

New-Item

SafeCreate item (PS)

New-Item -ItemType Directory <dir>

Creates a new file or folder.

Examples

  • New-Item -ItemType Directory logsCreate a folder

Syntax

New-Item -ItemType Directory|File <path>

Before you run it

Creation only.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store