The Dunyazad Digital Library

About the Library

The Reading Room

The Audio Wing

Get a Library Card

Other Stuff ...

Software

clip

Clip lets you write the output of a console command or a short text or the content of a text file to the Windows clipboard.

Current version: 2018-04-07 – download link below.

This program uses the conclip.ew library by Greg Haberek.

Syntax

somecommand | clip [-e] — redirects output of 'somecommand' to the clipboard

clip [-e] some text — writes 'some text' to the clipboard

clip [-e] < myfile.txt — writes content of 'myfile.txt' to the clipboard

-e — echo output to console

If you call clip without input by mistake, use Ctrl/C to terminate

For the 'clip [-e] some text' syntax:

Multiple spaces within 'some text' get reduced to single spaces, unless you enclose the text in double quotes

Leading and trailing spaces are removed, even if text is in double quotes, unless the text is preceded and/or followed by a backslash character

clip -? — display help text

Download and Installation

Download program file and documentation:

clip.zip (version 2018-04-07)

Unpack the zip file (it contains clip.exe and the documentation file clip.txt) and move or copy clip.exe to a directory that is included in the system path; you can then use it from the Windows command line. Nothing gets written to the registry. To uninstall, simply delete.

Disclaimer: I have tested this program and am using it myself, but I cannot guarantee its correct function under all circumstances.

License

This program, including the source code, is freeware. Do with it whatever you like. If you have any questions, suggestions, complaints or comments, I’d be glad to hear from you.

Source files

This program is written in Euphoria, version 4.0.5, compiled with Watcom C/C++ compiler 1.9, and compressed with upx. Euphoria is open source, and available at openeuphoria.org

Download Euphoria source files (not necessary for using the program):

clip-source.zip

History

04/07/2018 – first minor update since 2009

---

Back to the “> Software” page