CmdID

CmdID / Commands

set-clipboard

PowerShell command to set content to clipboard. 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

PowerShell command to set content to clipboard. Note: scb can be used as an alias for Set-Clipboard.

Copy text to the clipboard

Set-Clipboard -Value "text"Identify

Copy multiple texts to clipboard separated by new line

Set-Clipboard -Value @("text 1", "text 2", "text 3")Identify

Copy files or directories to clipboard

Set-Clipboard -Path "path\to\files_or_directories"Identify

Copy multiple files

Set-Clipboard -Path "path\to\file1","path\to\file2","path\to\file3"Identify

Clear the clipboard

Set-Clipboard ""Identify