Batch Programming Stuff
Batch files are essentially sequences of DOS commands stored in a
text
file with an extension of "BAT". When run, the batch executes
each line in the batch file as if they were typed in at the console
(mostly).
Most batches are tiny things that replace a few manually-typed
commands,
but some can be quite complex and can accomplish things that would
otherwise
require a "real" program.
Except as noted, these batch programs have been tested with MsDos 6
with the stock command.com and other files. Expect to do some
modifications
if you want to run them under any other operating system. They are
mostly
Windows 95 compatible, except for the deep system stuff like SFT.
Batch Files...
- Download UTILBATS.ZIP ·
Contains
most of these batches, last updated 12/21/98, 07/13/01
- Interrupt Vector Checker ·
Tells
if interrupts have been altered (Dos/Win3.1 only)
- Quick and Dirty Disassembler
·
Uses DEBUG to dump a file
- Cram multiple text files into one file
· Simple answer to a simple problem
- Quick answers to math problems
·
Uses QBasic
- HOWMUCH · Quickly tells
how
much disk space a directory branch uses
- SHOWRES · Shows resident
programs,
uses @.COM and ANSI screen codes
- SFT · Displays the System
File
Table, uses QBasic (customization required, Dos/Win 3.1 only)
- Text-to-HTML converter ·
Converts
text files into crude web documents, uses QBasic
- HTML-to-Text converter ·
Converts
HTML pages into plain text files, uses QBasic
- RTF-to-Text converter ·
Extracts
text from RTF documents, uses QBasic
- WordWrap · A batch that
wraps
long lines in text files, uses QBasic
- DIR2BAT · PKZips a
directory
branch with a designated run file into a single batch (Win95)
- DIRCOMP · an application
compressor
that makes a zip file and a batch launcher (Win95)
- DIR2BAT1 · A
dir-to-batch
compressor that uses only PKZIP/PKUNZIP (07/13/01)
- Conway's Game of Life ·
the
result of one late night and a bit of tweeking
- PRIEM · a batch system that
calculates
prime numbers, by Dirk van Deun
- A Fix for Win95Cmd's Pipes
·
Win9x only (10/07/02)
- Encoding binary files to batch code
· "ascii assembler" techniques and tools (9/10/02)
Useful utilities...
Batch how-to...
May 2, 2001 - The Batch
FAQ and Batch
Guide are now mirrored at tnewton.solarbotics.net.
Other batch stuff...
Other batch code at this site...
- MARS.BAT from the Corewar
section, an example of a fairly complex shell in batch
- RunAtari Batch from
the OldComp section, a shell batch
for
Atari emulators. Includes a utility for cursor-selecting files,
demonstrates
how to save individual setup information for different files.
- The front-end shell for the Sys4
CoreWarrior Evolver perl scripts, code techniques include
colorizing
a screen using debug and asm, using qbasic to overlay a cursor, using
flags
to control tasks and menu context.
- Corewar batches
from
the Warrior Evolution page.
Original material by me is Copyright 1996-2003 Terry Newton
Authors of other materials retain their own rights
(newton top level)