Computer and Software Support


clip 

This page is from Microsoft

Updated: January 21, 2005

Redirects command output from the command line to the Clipboard.
 
 
Syntax
clip
Parameters
/?
Displays help at the command prompt.
Remarks
  • You can use clip to copy data directly into any application, such as Word, that can receive text from the Clipboard.
Examples
To copy the list of contents in the c:\Windows folder to the Clipboard, at the C:\Windows prompt type:

dir|clip

To paste what you have copied into a WordPad document, start WordPad (or a similar text editor), click Edit, and then click Paste (or Right-click, and then click Paste). The following text appears:

  Volume in drive C has no label.
  Volume Serial Number is B446-4F14
  
  Directory of C:\Windows
  
05/22/2001 11:00 AM    <DIR>          .
05/22/2001 11:00 AM    <DIR>          ..
05/22/2001 11:14 AM    <DIR>          Ntsd
              0 File(s)              0 bytes
  3 Dir(s)   1,292,802,048 bytes free

To copy the contents of Readme.txt to the Clipboard, type:

clip < readme.txt

To copy the output of the Generic.awk program to the Clipboard, type:

awk -f generic.awk input.txt | clip

Formatting legend

Format Meaning
Italic Information that the user must supply
Bold Elements that the user must type exactly as shown
Ellipsis (...) Parameter that can be repeated several times in a command line
Between brackets ([]) Optional items
Between braces ({}); choices separated by pipe (|). Example: {even|odd} Set of choices from which the user must choose only one
Courier font Code or program output