Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2


Redirects command output from the command line to the Clipboard.



  • /?
    Displays help at the command prompt.
  • You can use clip to copy data directly into any application, such as Word, that can receive text from the Clipboard.

To copy the list of contents in the c:\Windows folder to the Clipboard, at the C:\Windows prompt type:


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


Information that the user must supply


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

See Also


Using command redirection operators
Command-line reference A-Z
Command shell overview