CLIP.exe (Resource Kit / Windows 7)

Copy the result of any command to the Windows clipboard.

      command | CLIP

      CLIP < filename.txt

When using clip in a batch script you should warn the user that their clipboard is about to be overwritten.

For Example:



“The stupid neither forgive nor forget, the naive forgive and forget, the wise forgive but do not forget” ~ Thomas Szasz (The second sin)

Related: - - copy clipboard to a file
Script-It - Control GUI applications
SET - Display, set, or remove Windows environment variables
Powershell: Out-Clipboard (PowerShell Community Extension)
Equivalent bash command (Linux): xsel - get and set the contents of an X-window selection

© Copyright 1999-2014
Some rights reserved