Dec 122017
Update to many of PC-MAG's utilities.
File DOSTCH.ZIP from The Programmer’s Corner in
Category Files from Magazines
Update to many of PC-MAG’s utilities.
File Name File Size Zip Size Zip Type
BAT2EXEC.COM 6284 4802 deflated
BAT2EXEC.DOC 3299 1512 deflated
BCOPY.COM 2294 1782 deflated
BCOPY.DOC 2226 1179 deflated
CDX.COM 7084 4864 deflated
CDX.DOC 2711 1271 deflated
EMS40.DOC 2252 1173 deflated
EMS40.SYS 3580 2928 deflated
INSTALL.COM 1801 590 deflated
INSTALL.DOC 1160 589 deflated
LASERLST.COM 1658 1361 deflated
LASERLST.DOC 2787 1353 deflated
LZSELECT.DOC 1325 711 deflated
LZSELECT.EXE 81912 50022 deflated
PCBOOK.DOC 2373 1171 deflated
PCBOOK.EXE 14072 8324 deflated
PCSPOOL.COM 6320 4513 deflated
PCSPOOL.DOC 2620 1254 deflated
REMOVE.COM 961 676 deflated
REMOVE.DOC 1594 732 deflated
RENDIR.COM 693 490 deflated
RENDIR.DOC 1532 729 deflated
SETUP.COM 3541 2584 deflated
SETUP.DOC 2426 1198 deflated
SLICE.COM 2020 1465 deflated
SLICE.DOC 2122 1069 deflated
TOGGLE.COM 818 488 deflated
TOGGLE.DOC 1954 968 deflated
ZCOPY.COM 4154 3209 deflated
ZCOPY.DOC 2696 1299 deflated

Download File DOSTCH.ZIP Here

Contents of the BAT2EXEC.DOC file


Doug Boling - Volume 9, Issue 14 - August 1990

Purpose: Compile your batch files for added speed. Large batch
files often run annoyingly slowly. Compiling them with
BAT2EXEC will increase both your productivity and satisfaction.

Daily PC operations are almost unimaginable without the use of batch
files. Everyone has his favorite collection of them, and some users
have constructed complex batch files of thousands of bytes that push
the batch langauge itself to its limits. Programs that expand the
available batch file functions, such as Michael Mefford's BATCHMAN,
encourage users to make even larger batch files.

Unfortunately, however, batch files are also notoriously slow.
It can be almost painful to watch them scroll down the screen a line
at a time. A standard way to improve the speed of interpreted
programs, such as batch files, is to compile them. That's where
BAT2EXEC comes in.


The full syntax for BAT2EXEC could hardly be simpler. Just enter:


where FILE.BAT is the name of your batch file. BAT2EXEC will then
produce an executable .COM file with the name FILE.COM. If BAT2EXEC
can't find the batch file, an error message will be printed. If
BAT2EXEC can't understand a line in the batch file, it will print an
error message indicating the line in the file in which it discovered
the error.

BAT2EXEC should not be used on every batch file. AUTOEXEC.BAT, for
example, must remain a genuine batch file in order for COMMAND.COM to
find it. Similarly, batch files that run terminate and stay resident
utilities (TSRs) should not be compiled. The reason for this
limitation lies in the DOS memory management structure: if a TSR is
executed from a program compiled by BAT2EXEC, the memory used by
BAT2EXEC itself will not be made available to the system after
it terminates.

Programs created by BAT2EXEC behave slightly differently from the
batch files from which they were compiled. The .COM file does not
echo each line to the screen as does the batch file, for example.
Running other batch files does not cause the .COM program to end.
Also, pressing Ctrl-Break does not present the message, "Terminate
Batch file (y/n)." If Ctrl-Break is pressed and BREAK has been set
on, the program simply terminates.

The size of the resulting .COM file is somewhat larger than
the batch file. Compiling a batch file containing a single REM
statement results in a .COM file size of 68 bytes, illustrating the
overhead of the setup and terminate routines. Program size increases
quickly as routines are added then slows as the loaded routines are
reused instead of new ones being added.

Certainly, BAT2EXEC is not suitable for use on every batch
file. Two and three line batch files are best left in their easy-to-
alter and simple-to-understand ASCII format. However, for those batch
files that have grown into long complex programs, BAT2EXEC is the

** Special Note: This utility is also a mentioned in the Ziff-Davis Press
book "PC Magazine's DOS 5 Techniques and Utilities" by Jeff Prosise. Both
this DOCumentation file and in the book's utility reference stand as correct.

 December 12, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>