Clip command
Updated: 11/12/2023 by Computer Hope
The clip command redirects the output of command line tools to the Windows clipboard. This text output can then be pasted to other programs.
Availability
Clip is an external command and is available for the following Microsoft operating systems.
Clip syntax
CLIP
Clip examples
echo Computer Hope | clip
Uses the echo command to print "Computer Hope" to the clipboard. The "Computer Hope" text can be replaced with anything you'd like to be copied to the clipboard.
dir | clip
Uses the dir command to place a copy of the current directory listing into the Windows clipboard.
clip < readme.txt
Places a copy of the text from readme.txt on to the Windows clipboard.
echo off | clip
Clear the contents of the Windows clipboard.
ipconfig /all | clip
Use the ipconfig command to display all network information and output the contents to the Windows clipboard.