Written by 5:50 pm Microsoft, Microsoft Azure, PowerShell, Virtualization, Windows, Windows Server

Pipe cmd prompt commands into the clipboard

cmd clip

This is a very all but very useful command if you work with the Windows Command Prompt. This allows you to output text from commands into the Windows clipboard.

dir | clip

Scott Hanselman from Microsoft just reminded the community about this feature, which is available in Windows since Windows Vista.

PowerShell v5 got some similar command using Set-Clipboard and Get-Clipboard.


Tags: , , , , , , , , Last modified: November 1, 2018