home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
batutl
/
send.arc
/
PRINTDEM.BAT
< prev
next >
Wrap
DOS Batch File
|
1985-10-17
|
4KB
|
86 lines
echo off
send $e[33;44;1m
send $e[2J
rem The first send line sets colors if you have a color monitor; the second
rem is an ANSI.SYS clear screen
send $_$_$_$_
send $_ SEND is an ideal vehicle for sending control codes to your
send $_ printer. Such control codes are specific to brand and even model
send $_ of printer. If your printer is not an IBM graphics printer or
send $_ compatible, you can still use SEND to send control codes to it but
send $_ you cannot use this demonstration file to illustrate how things work.
send $_ Please carefully strike $lCtrl Break$g to cancel this demonstration
: Notice we couldn't use < and > which would have been interpreted as
rem redirection commands and used $l and $g instead. This is not a
rem feature of SEND but of DOS; If the line starting "Notice" had said
: "rem" at the beginning, the > and < would also have been misinterpreted!
rem However, unused labels (lines beginning with :) in batch files are
rem ignored by DOS.
send $_ if your printer is not IBM Graphics compatible.$_
send $_ If you have the right kind of printer, please make sure that
send $_ the paper is properly aligned and that your printer is turned on.
send $_ Then...
rem We next move the cursor to line 22 to place the pause message
send $e[22;5H
pause
send $e[2J
send $_$_$_$_$_ This PRINTER DEMONSTRATION is presented by the makers of
send $_$_$_$_>prn
send $ You can send a command to skip lines with SEND$_$_$_>prn
send $e[36m$e[11;1H
send $ ██████$_
send $ █$_
send $ ██████$_
send $ █$_
send $ ██████$_
send $ You can print ^Ocompressed^R and ^Ndouble width^T with SEND$_$_$_>prn
send $e[0m$e[30;44m
send $e[11;15H██████
send $e[12;15H█
send $e[13;15H██████
send $e[14;15H█
send $e[15;15H██████
send $ You can $e-1underline$e-0, $eS1subscript$eT, >prn
send $eS0superscript$eT$_$_>prn
rem Lines can be split in the middle without sending a CR-LF
send $e[31m
send $e[11;24H██ █
send $e[12;24H███ █
send $e[13;24H█ ██ █
send $e[14;24H█ ███
send $e[15;24H█ ██
send $ You can print double strike, emphasized or bold$_>prn
send $ $eGhello$eH double strike$_>prn
send $ $eEhello$eF emphasized$_>prn
send $ $eG$eEhello$eF$eH bold = double strike and emphasized$_$_>prn
send $e[35m
send $e[11;33H██████
send $e[12;33H█ ██
send $e[13;33H█ ██
send $e[14;33H█ ██
send $e[15;33H██████$_$e[1;33;44m$e[20;5H
send $ Bold is so nice that we included a batch file to boldprint$_>prn
pause
send $ We will issue the command "boldprn trial.txt"$_>prn
command/c boldprn trial.txt
send $e[2J$e[10;5H
send The noises you are about to hear are part of the demonstration.$_
send $ DON'T WORRY$_
send ^G^G^G
send ^G^G^G That woke you up! SEND can send a command to buzz to$_>prn
send $ your computer or your printer.$_>prn
send $ SEND can also fill in the date today:$_>prn
send $ Its $d$_$_>prn
send $ And SEND can eject a page!^L>prn
send $_$_ If you have a print spooler, your printer wi
send ll buzz after you think$_
send $ the demonstration has ended; it's only part of the demonstration!
rem WARNING: The IBM Graphics printer won't backspace and so it will
rem ignore any $h or ^h sent to it.
rem WARNING: Many printers, the IBM graphics printer included, don't print
rem until they get a line feed or control character. Thus "send hello
: >prn" issued at the command line will have no effect until a
rem line feed is sent later and you may be surprized to find a "hello"
: where you didn't expect. Use "send hello$_>prn" instead.