Clip command in Windows
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
ParameterDescriptionNote: 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:
- The chcp command in Windows
- The chkntfs command in Windows
- Change command in Windows
3.5 ★ | 2 Vote