Clip command in Windows

Clip command redirects the command output from the command line to the Windows clipboard. You can then paste this text output into other programs.

Clip command redirects the command output from the command line to the clipboard (Windows clipboard) of Windows. You can then paste this text output into other programs.

For an example of how to use this command, please see the example below.

Clip command syntax

  | clip clip < 

Parameters

ParameterDescription Specify a command with the output you want to send to the Windows Clipboard. Specify the file with the content you want to send to Windows Clipboard. /? Show help at the command prompt.

Note: You can use the clip command to copy data directly to any application that can receive text from the Clipboard.

For example

To copy the current directory list to the Windows clipboard, enter:

 dir | clip 

To copy the program output named Generic.awk into Windows Clipboard, enter:

 awk -f generic.awk input.txt | clip 

To copy the contents of a file called Readme.txt into the Windows Clipboard, enter:

 clip < readme.txt 

See more:

  1. The chcp command in Windows
  2. The chkntfs command in Windows
  3. Change command in Windows
3.5 ★ | 2 Vote