home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / batutl / send.arc / SEND.DOC < prev    next >
Encoding:
Text File  |  1986-01-03  |  25.4 KB  |  542 lines

  1.  
  2.  
  3.  
  4.  
  5.                       DOCUMENTATION FOR SEND.COM   Ver 1.6
  6.  
  7.  
  8.       INTRODUCTION
  9.             SEND.COM is an enhanced version of the ECHO command, ideal
  10.       for sending escape sequences to the printer or screen.  The
  11.       documentation is primarily a tutorial on ECHO, SEND and redirection
  12.       of output.  If you already feel expert on ECHO and redirection, you
  13.       can skip to the final SUMMARY section to get a short manual on
  14.       SEND.
  15.             SEND, its source code, documentation, and demonstration files
  16.       are copyright 1985 by Howard Rumsey and Barry Simon.  They are
  17.       placed in public domain with one restriction and may be used for any
  18.       purpose including commercial use.  It is recomended that the the
  19.       full set of files be distributed together.  The sole restriction
  20.       is that the two files with copyright notices must be distributed
  21.       with these copyright notices.
  22.             Version 1.5 differs from the unnumbered version 1.0 by
  23.       including discussion of redirection of send through COMMAND.COM and
  24.       additional $<Cap Letters> commands.
  25.             SEND.COM was written by Howard Rumsey.  The source file is
  26.       found on the disk together with several demonstration files:
  27.             MONODEMO.BAT
  28.             COLORDEM.BAT
  29.             KEYRD.BAT
  30.             KEYOFF.BAT
  31.             PRINTDEM.BAT
  32.       The first four require you to have installed ANSI.SYS via your
  33.       CONFIG.SYS file.  The first two illustrate the use of SEND with
  34.       monochrome and color monitors respectively.  Keyrd will redefine
  35.       your F9 key to mean "dir" followed by <Enter> and F10 to mean "cls"
  36.       followed by <Enter>.  Keyoff returns the keys to their original
  37.       meaning.  The final batch file will illustrate the use of SEND if
  38.       you have an IBM graphics or compatible printer attached to LPT1.
  39.       This batch file can be run on either monitor, but if you have a
  40.       color monitor, you should run it with that as tne active monitor.
  41.       The demonstration files and this documentation were written by
  42.       Barry Simon.
  43.             The following files are also included:
  44.             BOLDPRN.BAT: Uses SEND to printout a file of your choice in
  45.                 boldprint on an IBM printer.  Type in the command
  46.                     "boldprn 'filename'"
  47.             TRIAL.TXT: Used in printdem to illustrate boldprn.bat
  48.             ANSISYS.ART: An article by B. Simon, which first appeared in
  49.                 the CAPITOL PC Monitor which describes the use of
  50.                 ANSI.SYS.
  51.       The batch files have numerous remarks embedded in them and you
  52.       should copy them to your printer.  You should note that you
  53.       couldn't do that if these batch files had used ECHO and embedded
  54.       escape characters rather than SEND!
  55.             These programs are hereby placed in the public domain.
  56.  
  57.  
  58.       Documentation for SEND.COM                          page 1
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.             Comments on this program can be sent to:
  68.                Barry Simon                      Howard Rumsey
  69.                Caltech 253-37         or        Caltech 158-79
  70.                Pasadena, CA 91125               Pasadena, CA 91125
  71.                                                 CompuServe 72426,3722
  72.             This documentation can be printed out by turning on your
  73.       printer, making sure that the paper is properly aligned and typing
  74.       "copy send.doc prn" at a DOS prompt.  If you have an IBM graphics
  75.       printer, you can get an even nicer copy by typing "boldprn send.doc"
  76.       at the DOS prompt.
  77.  
  78.  
  79.       INSTALLING SEND.COM
  80.             Some effort has been expended to keep SEND.COM under 512
  81.       bytes so it takes up only one sector if you have a floppy based
  82.       system.  In that case, you need to copy SEND.COM to your utility
  83.       disk.  SEND is not resident so the disk needs to be present
  84.       whenever SEND is invoked.  On a hard disk system copy SEND.COM to a
  85.       directory which is one of your DOS path search directories set by
  86.       the PATH command.
  87.  
  88.  
  89.       USING ECHO
  90.             You may be used to exploiting ECHO in your batch files but
  91.       may not be aware that it can be invoked from the DOS command line.
  92.       If that is the case, type in at the DOS prompt:
  93.             echo hello
  94.       You need to also hit <Enter> but I won't keep saying that.  The
  95.       response is amusing but not useful.  Next try:
  96.             echo hello > prn
  97.       More interesting!  Still not so useful but at least if you ever
  98.       want to use your printer as a typewriter (why anyone would want to
  99.       do this in preference to using a real word processor is beyond me!)
  100.       you can do it yourself without needing a BASIC program which does
  101.       precisely that.
  102.             Now try
  103.             echo <Ctrl G>
  104.       where "<Ctrl G>" means to hit a "control-G", that is to depress the
  105.       <Ctrl> key and strike the G and try
  106.             echo <Ctrl G> > prn
  107.       These are decidedly more interesting and you may even think of some
  108.       uses for them in batch files!
  109.             Next try turning off your printer, carefully aligning your
  110.      printer paper, turning your printer back on and typing
  111.             echo <Ctrl L> > prn
  112.       <Ctrl L> is the command to send a "top of form" to your printer but
  113.       if you look carefully you will discover that more than a top of
  114.       form was sent to the printer.  ECHO automatically inserts a
  115.       carriage return-line feed pair (CR-LF) to the end of any line so
  116.  
  117.  
  118.       Documentation for SEND.COM                          page 2
  119.  
  120.  
  121.  
  122.  
  123.  
  124.       your last command first sent a top of form but then advanced the
  125.       paper one additional line.  Annoying, isn't it?
  126.             Next try:
  127.             echo <Esc>
  128.       and
  129.             echo <Ctrl [>
  130.       (Escape and Control-[ are the same).  This doesn't do what you
  131.       might hope.  <Esc> is interpreted by DOS as a desire on your part
  132.       to abort the present command and thus you cannot use ECHO at the
  133.       command line to send an <Esc> to either the screen or your printer.
  134.       This is unfortunate since ANSI.SYS allows you to do all
  135.       sorts of nice things if you send the proper "escape sequences" to
  136.       the screen and many printers can be told to turn on boldface or
  137.       other neat things by sending escape sequences to them.  You can
  138.       send such sequences to the printer by using some word processors
  139.       (even EDLIN (ugh!) if you use its <Ctrl V> feature) to make a file
  140.       with embedded escape characters which you can copy to your printer.
  141.       But you then need to have these files around and you have files
  142.       with embedded control characters which you may have trouble
  143.       printing out or sending over a modem.
  144.             SEND is intended to remedy these defects of ECHO:
  145.             1. It does not terminate line in a CR-LF combination; one can
  146.               add such a pair "by hand".
  147.             2. Typing "send ^G" is equivalent (except for the lack of a
  148.               CR-LF) to typing "echo <Ctrl G>" so one need not fill files
  149.               with control characters.
  150.             3. Typing "send ^[E > prn" will send a <Esc>E to the printer
  151.               thereby turning on "emphasized" print.
  152.       In addition, as will be explained, SEND supports the PROMPT $-
  153.       characters.
  154.  
  155.  
  156.       SEND: CONTROL CHARACTERS
  157.             SEND works much like ECHO but if the string to be echoed
  158.       includes the caret (<Shift 6> which appears as ^), different rules
  159.       apply.  SEND will replace ^a by the character <Ctrl A> (ASCII 1),
  160.       etc.  ^ followed by any letter is replaced by the corresponding
  161.       control character whether the letter is upper case or lower case.
  162.       The remaining control characters:
  163.             ^@=ASCII 0
  164.             ^[=ASCII 27 (1B Hex)=<Esc>
  165.             ^\=ASCII 28 (1C Hex)
  166.             ^]=ASCII 29 (1D Hex)
  167.             ^^=ASCII 30 (1E Hex)
  168.             ^_=ASCII 31 (1F Hex)
  169.       may be included by following a caret by the appropriate symbol.
  170.       Obviously, ^[, the escape character will be used most often.  If ^
  171.       is followed by any other ASCII code such as ^2 or ^? or ^*, a
  172.       control character is also sent but the exact rules needn't concern
  173.       us.
  174.             If you wish to "send" a caret the string "$^" will have the
  175.       dollar sign striped away and a caret will be sent.  Thus the
  176.  
  177.  
  178.       Documentation for SEND.COM                          page 3
  179.  
  180.  
  181.  
  182.  
  183.  
  184.       command "send ^^a" will send the two characters <Ctrl ^> (ASCII 30)
  185.       followed by a (ASCII 97) while the command "send $^^a" will send
  186.       the two characters caret (ASCII 94) followed by <Ctrl A> (ASCII 1).
  187.             SEND does not automatically terminate any line in a CR-LF
  188.       (ASCII 13,ASCII 10) pair.  Thus typing "echo hello" at the DOS
  189.       command line will result in two lines on the screen before the
  190.       next DOS prompt: one line saying hello and the other a blank line.
  191.       Typing "send hello" will only produce the one line saying hello.
  192.       If one wants the CR-LF pair, one can insert it "by hand"; thus
  193.       "send hello^M^J" will have the exact same effect  as "echo hello".
  194.       As we will see in the next section "send hello$_" is also
  195.       equivalent.  It is important to remember to put in these CR-LF by
  196.       hand if you are using SEND in a batch file to echo a message to the
  197.       screen.  For example the four line batch file
  198.             echo off
  199.             cls
  200.             send hello
  201.             send there
  202.       will produce the string "hellothere" on one line on the screen
  203.       while adding $_ after "hello" or even replacing the last two lines
  204.       by
  205.             send hello$_there
  206.       will produce a two line message with one word on each line.
  207.  
  208.  
  209.       SEND: $ LOWER CASE CHARACTERS
  210.             SEND supports the $-meta string conventions of the DOS PROMPT
  211.       command with one important changes (see $h below).  Specifically,
  212.       if a $ appears in a string following a SEND command (EXCEPTION: if
  213.       the $ is immediately preceded by a caret ^$ is interpreted as <Ctrl
  214.       D> unless of course its preceded by two carets...), a special
  215.       interpretation is made if the $ is immediately followed by one of
  216.       the following:
  217.             $,^
  218.             g,l,b,q
  219.             h,_,e
  220.             t,d,p,v,n
  221.             P,M,D,Y,T as descibed in the next section
  222.       In all other cases, the $ is ignored so that "send $a" will send
  223.       only "a" to the screen.  "$$" and "$^" follow the same rule of
  224.       stripping away the $ except that the $ and ^ are sent in their
  225.       conventional meaning rather than as special symbols for SEND.
  226.             The case of the letter following $ is significant. $G will be
  227.       interpreted as G while $g as >.
  228.             $g,$l,$b,$q correspond to the characters >,<,|,=
  229.       respectively.   You can use the ordinary "=" in a line starting with
  230.       "send", but you CANNOT type >,< or | in such a line since DOS will
  231.       interpret these symbols as redirection or piping.  You must use
  232.       the $-meta string instead.  For example, if you use FANSI-CONSOLE
  233.       and want to send the ANSI code "<esc>[>4h" typing the command "send
  234.       ^[[>4h" will make a file "4h" with two bytes in it while "send
  235.       ^[[$g4h" will do exactly what you want.
  236.  
  237.  
  238.       Documentation for SEND.COM                          page 4
  239.  
  240.  
  241.  
  242.  
  243.  
  244.             $h is equivalent to ^H, ASCII 8, the "backspace" which, if
  245.       sent to the screen, moves the cursor back one space.  Unlike the
  246.       PROMPT $h, the SEND $h does not erase the previous character.  Thus
  247.       "send a$h" will show an "a" on the screen and "send a$hb" will show
  248.       a "b" on the screen since the cursor will backspace one unit and
  249.       the b will overwrite the a.  But the command "send a$hb>file" will
  250.       produce a file with three bytes: a,<Ctrl H>,b.
  251.             $_ is equivalent to ^M^J, i.e. to a CR-LF pair.
  252.             $e is equivalent to ^[, the escape character (ASCII 27).
  253.             $t and $d send the time and date in the form returned by the
  254.       TIME and DATE commands.  Thus the time will appear as HH:MM:SS:hh.
  255.       If you only want the hours and minutes to appear on the screen, you
  256.       can type "send $t$h$h$h$h$h$h      ". (There are six spaces after
  257.       the final $h and they are important!).
  258.             $p will send the current full pathname including the current
  259.       drive such as "C:\bin\batfiles" or "C:\".
  260.             $v returns the current DOS version and $n the current default
  261.       drive letter without a trailing colon.
  262.  
  263.  
  264.       SEND: $ UPPER CASE CHARATERS
  265.             Send also supports a small number of extensions of the propmt
  266.       meta strings:
  267.             $P: For any directory but the root directory $P will send
  268.       $p\; for the root directory, $P sends just \.  Thus if a file has
  269.       name as its filespec, "send $Pname" will always return the full
  270.       path-and-filespec while "send $p\name" will only work correctly if
  271.       you're not in the root directory.
  272.             $T: returns the time in HHMM form so if its 9:15:37:45 AM, it
  273.       will return 0915 and if its the same time PM, it will return 2115.
  274.             $M: returns the month in MM form so January is 01 and
  275.       December is 12.
  276.             $D: returns the day in DD form so on the first, you'll get 01
  277.       and on the twentieth 20.
  278.             $Y: returns the last two digits of the current year.
  279.             These last four metastrings are especially useful in
  280.       connection with redirection through command.com as discussed below.
  281.  
  282.       SEND AND ANSI.SYS
  283.             One of the most useful things you can do with SEND is exploit
  284.       the ANSI.SYS device driver.  ANSI.SYS is a file that comes with DOS
  285.       (version 2.0 and higher).  You need to load it in your CONFIG.SYS
  286.       file.  If you already have such a file, add a line
  287.             device=ansi.sys
  288.       to it and place ANSI.SYS in your root directory or, even better,
  289.       place ANSI.SYS in a directory, say GEORGE and add a line
  290.             device=\george\ansi.sys
  291.       to your CONFIG.SYS file. If you don't have such a file, add one to
  292.       your root directory with one of the above lines and while you're at
  293.       it, you should probably add files=20 and buffers=15 (unless the
  294.       memory of your computer is very limited).
  295.            You can read about the syntax of the ANSI.SYS commands in the
  296.  
  297.  
  298.       Documentation for SEND.COM                          page 5
  299.  
  300.  
  301.  
  302.  
  303.  
  304.       DOS 2.0 manual or the DOS 3.0 technical reference.  ANSI.SYS can be
  305.       used to control screen colors on a color monitor, and attributes on
  306.       a monochrome monitor.  For example,
  307.             send $e[1;31;42m
  308.       will produce an unpleasant screen while
  309.             send $e[1;33;44m
  310.       will be more to your liking.  Actually, it is best to set your
  311.       screen colors using the DOS PROMPT command.  You can use SEND to
  312.       call up colors and attributes for effect in batch files.  The two
  313.       batch files MONODEMO and COLORDEM provided illustrate this.
  314.             You can also use SEND and ANSI.SYS to redefine keys in DOS.
  315.       This is illustrated by KEYRD.  Try the F9 and F10 keys after
  316.       running KEYRD and turn off these special meanings by running
  317.       KEYOFF.
  318.             An article which originally appeared in the CAPITOL PC
  319.       Monitor is included on the disk if you want to know more about how
  320.       to use ANSI.SYS.
  321.  
  322.  
  323.       REDIRECTION OF OUTPUT
  324.             DOS, following UNIX, supports two virtual devices called
  325.       "standard input" (stdin) and "standard output" (stdout).  Programs
  326.       rather than sending their output to a specific device like the
  327.       screen or printer can send them to stdout and similarly rather than
  328.       take input from a specific device, they can take it from stdin.  If
  329.       not specified otherwise, stdout is sent to the currently active
  330.       screen and stdout is taken from the keyboard (i.e. the DOS command
  331.       line).  However, one can redirect stdout to another device.  For
  332.       this to work the program MUST send its output to stdout.  For
  333.       example, the "main output" of the COPY command goes not to stdout
  334.       but to the second file specified on the command line; only the
  335.       message that COPY sends goes to stdout.  Thus "copy send.doc prn"
  336.       will print this file on your printer, but "copy send.doc > prn" will
  337.       print the error message
  338.  
  339.             File cannot be copied onto itself
  340.                     0 File(s) copied
  341.  
  342.             If a program takes its input from stdin, that too can be
  343.       redirected.  One redirects output using the symbol ">" and input
  344.       using "<".
  345.             SEND sends its output to stdout and that can be redirected,
  346.       for example to a printer or file.  It takes its input from the
  347.       keyboard rather than from stdin so one cannot redirect input.
  348.  
  349.  
  350.       SENDING PRINTER CONTROLS
  351.             SEND can also be used for sending control sequences to your
  352.       printer.  Unfortunately, the sequences to be used tend to be highly
  353.       dependent on the brand and/or model of your printer.  The PRINTDEM
  354.       batch file included and the examples presented here work for the
  355.       IBM graphics printer and compatibles.  You may need to figure out
  356.  
  357.  
  358.       Documentation for SEND.COM                          page 6
  359.  
  360.  
  361.  
  362.  
  363.  
  364.       how to modify things to handle your own printer.  The simplest
  365.       example is a one line batch file entitled tf.bat
  366.             send ^L> prn
  367.       Typing tf at the DOS command line will cause your printer to eject
  368.       a page.  You might even want to define a function key to mean tf.
  369.       A more sophisticated example is the five line batch file
  370.       BOLDPRN.BAT, provided as a sample file:
  371.             echo off
  372.             cls
  373.             send $eE$eG>prn
  374.             copy %1 prn
  375.             send $eF$eH>prn
  376.       Thus typing "boldprn MYFILE" will print a boldface (=emphasized and
  377.       doublestrike) copy of myfile on your printer.  You might consider
  378.       adding the line:
  379.             send $P%1 printed on $d>prn
  380.       before the "copy..." line.
  381.             Other examples can be found in the PRINTDEM batch file.
  382.             A particularly useful way of sending printer codes is to use
  383.       send in CED synonyms if you have the program CED.
  384.  
  385.  
  386.  
  387.       ECHO, SEND AND PARAMETERS
  388.             If you have a batch file called foo.bat and type the command
  389.                   foo hello
  390.       at the DOS command line, hello is treated by DOS as the first
  391.       parameter, denoted %1.  Thus the line "echo %1 there" in the batch
  392.       file will type the phrase "hello there" on the screen.  Since this
  393.       is a DOS service, "send %1 there" will work the same way.  DOS
  394.       makes the replacement before the line in the batch file is
  395.       processed.
  396.  
  397.       USING BOTH ECHO AND SEND
  398.             There is no reason not to use both ECHO and SEND on different
  399.       lines of batch files.  In the demonstration files we only used SEND,
  400.       but if one doesn't need the special features of SEND, it is more
  401.       convenient to use ECHO and not have to worry about inserting the
  402.       CR-LF pairs by hand.
  403.  
  404.  
  405.       REDIRECTING SEND THROUGH COMMAND.COM
  406.             If you use SEND for a while, you will wish you could send its
  407.       output to the command line rather than just to the screen.  That is
  408.       typing "send ren myfile file$M$D" on December 15, will echo "ren
  409.       myfile fill1215" on the screen but will not issue that command to
  410.       DOS.  One can use DOS's pipe facility to issue such commands to DOS
  411.       but some care is needed.  If not done exactly right, your system
  412.       will hang although the only effect will be the need to reboot.
  413.             One can make a new "shell" of DOS by issuing the command
  414.       "command" if the DOS file COMMAND.COM is in the current directory
  415.       or in your DOS search path.  This new shell remains resident until
  416.  
  417.  
  418.       Documentation for SEND.COM                          page 7
  419.  
  420.  
  421.  
  422.  
  423.  
  424.       the command "exit" is issued.
  425.             To explain the care needed consider some examples.  Unless
  426.       you like rebooting, don't actually try these examples out!  If you
  427.       type "send cls|command" at the DOS command line, the letters "cls"
  428.       will appear on your screen after the copyright for the appropriate
  429.       version of DOS.  However, when you try to push the <Enter> key
  430.       nothing will happen.  You told the new command.com to take its
  431.       input from the output of SEND and it stubbornly won't take any from
  432.       you; the only keystroke to which it will respond is the one
  433.       requiring three fingers!  So you might try, "send cls$_|command".
  434.       This will work in the sense that your screen will clear but after
  435.       that, the system will hang.  The correct thing to do is "send
  436.       cls$_exit$_|command".  This will clear the screen and unload the
  437.       new shell of command.com returning control to you.  So the moral is
  438.       whenever piping send's output through COMMAND.COM you should be
  439.       sure that the end of the string in "send 'string'|command" is
  440.             "$_exit$_"
  441.             Of course, you'd never use this redirection to clear the
  442.       screen.  Here are two possible uses.  You might make a batch file
  443.       called return.bat with the single line:
  444.             send %1 %2$_$n:$_cd $p$_exit$_|command
  445.       Thus, if you have a batch file lotus.bat which switches to the
  446.       directory with 123 and runs it, typing "return lotus" will run
  447.       lotus.bat and then return you to the drive and directory that you
  448.       started on.  You needn't worry that having told COMMAND.COM to only
  449.       accept input from the output of SEND, your keyboard will be locked
  450.       up when you try to communicate with 123.  COMMAND.COM will not
  451.       accept input from the keyboard, but it has loaded 123 which is
  452.       configured to take input from the keyboard.  However, if you run a
  453.       program with return.bat that tries to issue commands to DOS, it may
  454.       not work.  Mind you, there will be no problem with the program
  455.       using DOS services as it might in saving a file.
  456.             Here is another use.  Suppose that your communication program
  457.       captures input into a file named "temp" by default.  You want to
  458.       make a batch file which collects your electronic mail and stores it
  459.       in a file whose name is stamped with today's date.  Include the
  460.       line
  461.             send ren temp mail$M$D.$Y $_exit$_|command
  462.       in the file and things will work exactly as you wish.
  463.             In this last example, it is important to mention that when
  464.       you exit an extra shell of DOS, it returns control to the calling
  465.       program, even if the calling program is a batch file.  Thus the
  466.       above line will work fine even in the middle of a batch file.
  467.             Two warnigs: NEVER load a program that becomes permanently
  468.       resident in the string you send to COMMAND.COM.  You will then be
  469.       unable to exit the new DOS shell and your system will hang.  Do not
  470.       try to change environmental variables (path, prompt, etc.) with the
  471.       command string.  Nothing bad will happen but the change will only
  472.       take effect in the new shell and when it is exited, the changes
  473.       will be lost.
  474.  
  475.  
  476.  
  477.  
  478.       Documentation for SEND.COM                          page 8
  479.  
  480.  
  481.  
  482.  
  483.  
  484.       SUMMARY
  485.             SEND works just like the ECHO command in DOS (including the
  486.       fact that its output but not its input can be redirected) except:
  487.             1. CR-LF pairs are not automatically inserted at the end of
  488.       each line but must be inserted (either as $_ or as ^M^J) at any
  489.       desired point.
  490.             2. ^ and $ are not interpreted in the usual way but have
  491.       special meanings; "$$" will be interpreted as "$" and "$^" as "^".
  492.             3. ^ followed by any letter (upper or lower case) or the
  493.       other appropriate symbols (@,[,\,^,_) are interpreted as the
  494.       corresponding control characters.  In particular, ^[ will send an
  495.       <Esc> (ASCII 27). It is better not to follow ^ by any other symbol.
  496.             4. $ followed by ^,P,M,D,Y,T or any of the PROMPT meta
  497.       characters ($,t,d,p,v,n,g,l,b,q,h,e,_) has the meaning given in the
  498.       DOS manual description of the PROMPT.  $^ gives a literal ^ and $P
  499.       means the same a $p in the root directory and the same as $p\ in
  500.       any other directory.  $h does not have the PROMPT meaning of
  501.       backspace AND ERASE but only means backspace, i.e. <Ctrl H> (ASCII
  502.       8).  In particular, $e  will send an <Esc> (ASCII 27) and $_ a CR-
  503.       LF pair.  $M,$D,$Y return two digits for the month, day and year.
  504.       $T returns the four digits HHMM in the time.
  505.  
  506.  
  507.       HISTORY
  508.  
  509.       Version 1.0                               10-15-85
  510.  
  511.       Version 1.5                               12-05-85
  512.             Added $M,D,Y,T commands and added to the documentation the
  513.       possibility of piping send throungh COMMAND.COM
  514.  
  515.       Version 1.6                               01-03-86
  516.             Modified send to work properly with XCED, a part of the PCED
  517.       package.  Previously, send assumed it command input ended with a CR
  518.       which DOS automatically inserts at the end of command lines.  Now
  519.       send ends its input when it reaches a NULL (ASCII 0) or the number
  520.       of characters specified by DOS for the input, whichever comes
  521.       first.
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.       Documentation for SEND.COM                          page 9
  539.  
  540.  
  541.  
  542.