Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Clip

Console application to set or get the contents of the Windows clipboard

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Clip

This console application redirects the Windows clipboard to STDOUT or sets the clipboard to text from a file or from the command line.

Examples:

pascal
   clip                        - displays clipboard
   clip > file.txt             - writes clipboard contents to file.txt
   clip "Hello, World!"        - sets the clipboard text to "Hello, World!"
   clip file.txt               - sets the clipboard to the contents of file.txt
                                 (or to the text "file.txt" if it doesn't exist)

This was written in 2001. Microsoft later added the CLIP command to DOS, however it unfortunately only works one way.