<OT> Windows question
Michael Hipp
mhipp
Mon May 17 11:34:06 PDT 2004
The Win2k Resource Kit has something called clip.exe:
----------
clip.exe: Clip To Clipboard
This command-line tool copies text from the STDIN stream to the Clipboard.
You can then paste the data directly into any application that can receive
text from the Clipboard.
To use Clip
Run any program that prints text to STDOUT and pipe the results through
Clip. Clip reads from STDIN and copies the text to the Clipboard. Then,
using the Paste command, copy the text to any application that can receive
text from the Clipboard.
For syntax details, at the command prompt, type:
clip /? or clip -?
Example One
dir | clip
copies a folder listing onto the Clipboard. Next, run WordPad (or a similar
text editor) and choose Edit, then Paste from the menu bar to paste the
folder listing into WordPad.
Example Two
clip < readme.txt
places a copy of the contents of Readme.txt onto the Clipboard.
Example Three
awk -f gencode.awk input.txt | clip
places the output of the program Gencode.awk onto the Clipboard.
File Required
Clip.exe
----------------------
You might poke around to see if it can be downloaded somewhere (Google). Or
a search of ZDnet might turn up a freeware/shareware alternative.
Michael
On Saturday 29 June 2002 08:18 am, Joel Hammer wrote:
> It would be better if the script automatically sent the output to the
> clipboard. The output is going to be rather lengthy, about 20 to 40 lines
> of text. And, the users are going to be secretaries, some of whom are
> very ill educated about computer use.
More information about the Linux-users
mailing list