Say! 1.6 build: 9639 released: 2010-01-28

Enhanced ECHO command.

Copyright: (c) 2017 Canadian Mind Products.

C command line utility.
Download from: http://mindprod.com/products4.html#SAY!

----

Notes:

This program can only be used from the command prompt, (or via an command
line style icon shortcut) e.g. under Windows command.exe or JPSoft
tcmd.exe, formerly called the DOS box. Just clicking the programs in a
directory listing will not do anything useful. Just typing the program
names at the command prompt will not either.

This program requires a manual install! See below.

This program works with vanilla text files, (e.g. ASCII files or UTF-8
Unicode files). You will need a text editor to create and view them, not a word
processor. e.g. notepad, Visual Slick Edit or other suitable text editor
http://mindprod.com/jgloss/editor.html. You must use a monospaced font
http://mindprod.com/jgloss/monospacedfonts.html (aka fixed pitch, aka
programmer font) to view your files, or they won't look properly aligned.

I put out an avalanche of free software into the world, and submit PAD
files to hundreds of distribution sites, but I rarely hear back from
anyone.  What's happening?  Does it all just work fine?  It is so
complicated nobody can figure out how to use it and they give up on it?
It is it useful?  Since everyone has the source, do people just fix the
programs to their liking themselves?  Did you have trouble installing?  Do
I presume you know too much?  I would be happy to hear from you about your
experiences, positive or negative and your requests for improvements.  A
one-line email to roedy@mindprod.com would be great.

===> Free <===
Full source included.
You may even include the source code, modified or unmodified
in free/commercial open source/proprietary programs that you write and distribute.
May be used freely for any purpose but military.
For more details on this restriction, see
http://mindprod.com/contact/nonmil.html
If you include any Canadian Mind Products code in your own applications,
your app too must be labelled non-military use only.
http://mindprod.com/contact/nonmil.html
All C source and EXE files code are included.

----

Prerequisites:

This program runs under Microsoft Windows from the command line (e.g. Win2K/XP/Vista)

----

Installing on a PC:

Download source and executable files to run on your own machine as a standalone utility.
To install, extract the zip download with WinZip
(or similar unzip utility) into any directory you please,
often J:\ --  ticking off the <span class="click">use folder names</span> option.

----

Installing on a MacIntosh:

Use Safari to download source and executable files to run on your own machine as a standalone utility.
The EXE files will not work. You will have to recompile, perhaps making minor changes to the source code.
Safari will automatically unpack the zip into ~/Downloads (version 10.5)
[or on the Desktop (version 10.4 and earlier)].
First install a recent Java JDK or JVM.
See http://mindprod.com/jgloss/installingjava.html.
You may optionally move the download tree to a permanent home.

----

Rebuilding:

The zip already contains the necessary exe, so unless you modify
the program, there is no need to recompile the source or recompile it.
Configure.java basedir="E:/" in rebuild.xml to the drive where your files are and tweak rebuild.xml.
Use ANT and rebuild.xml, not build.xml, to rebuild and link.

----

Use:

SAY!  is like DOS/Windows/Take Command ECHO with easily embedded control
characters.  It lets you echo both text and control characters to pipes or
files to construct small files on the fly in bat files.
You specify embedded control characters  as their decimal number
equivalents e.g.  7=bell 8=Bs 9=tab 10=Nl 12=form feed 13=Cr
        SAY! "empty" 13 10 > dummy.txt
        SAY! "Y" 13 | DEL *.*
        SAY! 27 "&l5257.1058J" 26 > LPT1:
        SAY! 7 7 7 "The sky is falling"
        SAY! "first line" 13 10 "second line" 13 10  > tinyfile.txt
        will put two lines to the file with CrLf line terminators.
Use it to send control strings to a printer, or simulate keystrokes to a
program.
Generates arbitrary strings for pipes or redirection.  It fixes a design
flaw in Windows and Take Command ECHO.
say! "contents" > somefile.txt
will put just the letters contents into the file, not the quotation marks
SAY! is very similar to SAY in the Ziff Communications PC Powertools.
Raymond Hettinger also wrote a very elaborate SAY program based on SAY!
that allows you to use mnemonics like ETX instead of 3.
There are two versions included, both with source:
ASSEMBLER version say!.com that works in DOS/W3.1/W95/W98/Me/NT/W2K/XP/W2K3/Vista/W7-32
and a 32-bit C version say!.exe that works in W95/W98/Me/NT/W2K/XP/W2K3/Vista/W7-32/W7-64
Use the say!.com version except for Windows 7 64-bit. It is smaller faster, and it does the right thing
with:
say! "13" " ghosts" > file.txt
the com version will put "13 ghosts" into the file.
the exe version will but " ghosts" into the file with a leading Cr character.
C can't tell the difference between a parm in quotes and one without,
so "13" looks to it like 13.
To get a literal quote in say!.com use code 34.
To get a literal quote in say!.exe use two quotes is row "".


----

Version History:

 1.6 2010-01-28 port the DOS assembler version

-30-