, , , , ,

Pipe cmd prompt commands into the clipboard

1–2 minutes
No comments on 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.


Set-Clipboard

Get-Clipboard

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.