[comp.os.msdos.programmer] Sending printer commands from a batch

ts@uwasa.fi (Timo Salmi) (03/14/91)

Wed 13-Mar-91: I have written a menu based ansi.sys driven advanced
batch for sending command codes to the printer to make printer
initialization and setting easy. It is called setprn.bat. It is for
Diconix Inkjet Parallel Printer Model 150, which is an Espon
compatible printer. Thus the batch is suitable for various different
printer makes, and easily configurable. I have added these two
batches to my collection of (hopefully) useful and instructive batch
files /pc/ts/tsbat24.arc best available by anonymous ftp from
garbo.uwasa.fi archives. There is a program-based alternative to
setprn.bat, that is setdico.exe which can be found in
/pc/ts/tsprn##.arc. The difference is that in setprn.bat you are
able to configure the printer codes if you wish.

TSBAT24.ARC     Batch file collection, T.Salmi
Filename        Comment                             Date      Time
--------        --------------------------------    ----      ----
ADDPATH.BAT     Append directories to the path    10-21-90  17:44:06
APATH-OM.BAT    Otto Makela's version of addpath  01-13-90  12:32:30
ARC2ZIP.BAT     Single .arc to .zip with comment  10-21-90  11:11:02
ASK.EXE         Ask questions in a batch file     12-29-90  13:50:10
BLANK.BAT       Poor man's screen saver           03-28-90  10:42:54
BLK.BAT         Poor man's screen saver & popup   10-21-90  19:51:38
C.BAT           Lazy changing of directory        03-14-90  15:39:46
COLOR.BAT       Set screen color attributes       10-21-90  20:00:02
D.BAT           Directory with sort & wildserach  10-21-90  20:09:32
DAILY.BAT       Run a program only once a day     10-21-90  20:11:52
DELDIR.BAT      Remove directory and its files    01-22-91  19:34:20
DELPATH.BAT     Delete a directory from the path  10-21-90  18:34:30
FU.BAT          Poor man's function evaluator     03-12-91  08:00:32
LASTBOOT.BAT    Show date + time of previos boot  10-21-90  20:22:12
LINK1.BAT       How to link batch files together  10-31-89  14:26:14
LINK2.BAT       Batch link demo's second file     11-15-89  12:23:24
LOCATE.BAT      Wildcard file find                01-14-90  11:22:56
LOGRUN.BAT      Log program usage & time and run  04-15-90  22:46:54
M.BAT           Give multiple MsDos commands      03-04-90  11:08:08
MAKESURE.BAT    Simple command.com virus warning  01-14-90  11:54:56
MENU.BAT        Run programs from a menu          12-29-90  16:55:30
POPDIRE.BAT     Restore (pop) saved directory     01-14-90  11:57:14
POPPATH.BAT     Restore the saved path            01-14-90  11:59:44
PUSHDIRE.BAT    Non-resident push directory       01-14-90  11:58:18
PUSHPATH.BAT    Save the current path             01-14-90  11:58:44
RUN.BAT         Testing for viruses               01-14-90  12:11:24
SAFEDEL.BAT     Safe delete of files              12-28-90  18:53:46
SAFEDEL1.BAT    Auxiliary batch to safedel.bat    12-28-90  19:01:28
SCANZIP.BAT     Scan for viruses (incl. lzexed)   12-30-90  10:26:52
SCOPY.BAT       Copy a file with a single device  06-28-90  12:09:08
SETCOM.BAT      Secure your command.com           10-28-89  19:41:08
SETPRN.BAT      Set an Epson compatible printer   03-13-91  07:39:10
SETPUSHD.EXE    Program for nonresident pushdire  01-13-90  17:33:42
SETVAR.BAT      Sets a variable for delpath.bat   01-15-90  22:19:38
SHOW.BAT        Wildcard multifile type command   10-21-90  20:40:20
SHOW1.BAT       Auxiliary batch for show.bat      06-01-90  06:07:08
TSBAT.INF       Document                          03-13-91  07:58:52
TSBAT.NWS       News concerning this package      03-13-91  07:50:16
TSPROG.INF      List of PD programs from T.Salmi  01-25-91  16:05:54
UNPACK.BAT      Unpack-test-view any archivetype  12-28-90  19:30:56
VAASA.INF       Info: Finland, Vaasa, U of Vaasa  02-02-90  11:52:54
VIRUS.BAT       Another batch-based virus test    10-21-90  20:47:04
WHERE.BAT       Generic searchstring fname find   10-21-90  20:48:26
ZIPDATE.BAT     Equate .zip date to latest file   01-10-90  22:49:00
ZOO2ZIPH.BAT    Single .zoo to .zip on harddisk   12-20-90  12:21:30
----            ------             ------  -----
0045            102503              59139   43%

...................................................................
Prof. Timo Salmi        
Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun