CmdID

CmdID / Commands

new-item

Create a new file, directory, symbolic link, or a registry entry. tldr-pages

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from tldr-pages, CC BY 4.0

Create a new file, directory, symbolic link, or a registry entry. Note: This command can only be used through PowerShell.

Create a new blank file (equivalent to touch)

New-Item path\to\fileIdentify

Create a new directory

New-Item -ItemType Directory path\to\directoryIdentify

Write a new text file with specified content

New-Item path\to\file -Value contentIdentify

Write the same text file in multiple locations

New-Item path\to\file1 , path\to\file2 , ... -Value contentIdentify

Create a symbolic link\hard link\junction to a file or directory

New-Item -ItemType SymbolicLink -Path path\to\link_file -Target path\to\source_file_or_directoryIdentify

Create a new blank registry entry (in REG_SZ, use New-ItemProperty or Set-ItemProperty to fine-tune the value type)

New-Item path\to\registry_keyIdentify

Create a new blank registry entry with specified value

New-Item path\to\registry_key -Value valueIdentify