<OT> Windows question

Joel Hammer Joel
Mon May 17 11:34:07 PDT 2004


I don't think I want to get this involved for this little project.

What I was doing was generating some canned reports. I just numbered every
line in the canned report master copy, and used ssed (works quite well in
windows) to pull out the required lines. ssed also formats them. Then, the
trick was to get them into the application as effortlessly as possible. This
all works from a command line in an msdos window, which really is much
better than a GUI.

So, what I have done is just piped the output into notepad, and the poor
end user will have to select and copy.  I was very surprised that notepad
could be run from a msdos window, but, that just shows what I know about
windows.

Hmmm.. Now, if I could just do that with word and have a macro which
automatically selects, copies, and exits......

Oh well, compared to most of the junky software they give us, this is
fine.

Thanks for the information.

Joel

On Sat, Jun 29, 2002 at 08:46:18PM -0500, ronnie gauthier wrote:
> See if this link helps. You might also want to look at the windows wish console.
> 
> http://mini.net/tcl/1008
> 
> On Sat, 29 Jun 2002 20:46:10 -0400
> Joel Hammer <Joel at HammersHome.com> wrote:
> 
> > I don't think can help me. I am using 98. I wasted some time on the
> > Microsoft web site, but aside from a reference to it, I couldn't find this
> > resource kit, at least for 98.
> > 
> > I don't want to download anything off the net from some odd site or other as
> > this is a work computer and they wouldn't like that. Either would I.
> > 
> > Joel
> > 
> > On Sat, Jun 29, 2002 at 06:01:04PM -0500, Michael Hipp wrote:
> > > 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.
> > > 
> > > 
> > > _______________________________________________
> > > Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
> > > Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
> > _______________________________________________
> > Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
> > Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
> _______________________________________________
> Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
> Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.



More information about the Linux-users mailing list