Events
29 Apr, 14 - 30 Apr, 19
Join the ultimate Windows Server virtual event April 29-30 for deep-dive technical sessions and live Q&A with Microsoft engineers.
Sign up nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Redirects the command output from the command line to the Windows clipboard. You can use this command to copy data directly into any application that can receive text from the Clipboard. You can also paste this text output into other programs.
<command> | clip
clip < <filename>
Parameter | Description |
---|---|
<command> |
Specifies a command whose output you want to send to the Windows clipboard. |
<filename> |
Specifies a file whose contents you want to send to the Windows clipboard. |
/? | Displays help at the command prompt. |
To copy the current directory listing to the Windows clipboard, type:
dir | clip
To copy the output of a program called generic.awk to the Windows clipboard, type:
awk -f generic.awk input.txt | clip
To copy the contents of a file called readme.txt to the Windows clipboard, type:
clip < readme.txt
Events
29 Apr, 14 - 30 Apr, 19
Join the ultimate Windows Server virtual event April 29-30 for deep-dive technical sessions and live Q&A with Microsoft engineers.
Sign up now