Átomo
5Ni
Arquivos e pastas · Windows

New-Item

Abrir na tabela

Definição

Cria arquivos e pastas. Com -Force cria a hierarquia inteira.

mkdir é um atalho para New-Item -ItemType Directory.

Exemplos

1. Pasta
New-Item -ItemType Directory -Path data\raw
mkdir reports
2. Arquivo
New-Item -ItemType File -Path notes.md
3. Hierarquia inteira
New-Item -ItemType Directory -Force -Path data\raw\2026\03

No mesmo grupo