This
demonstration
is
very simplistic, intended to illustrate the usefulness
for Batch files with Debug. Very elaborate Batch streams can be run
using the same technique. All that is necessary is to put other Debug
commands into the text file that is to be used by Debug to perform our
task. Saves much typing and reduces the likelihood of typos.
This technique can also be used to run script under Windows from the
Hard Drive, but that is not our intention in this exercise. Once the
techniques are understood, It is a very powerful tool, both under
Windows and as a stand alone set of programs.
For example, this
demonstration could have been executed from Windows without opening
Command.Com from the Floppy Disk by clicking START, RUN, entering A:batching and click on OK.
Its not even necessary to call the command interpreter to execute this
Batch stream. All that is necessary, Under Windows is to double click
on the Batching.bat icon on the Floppy Disk. However, for the sake of
later examples, we have called our bat stream from the DOS prompt in
this example.
However, for our example, it is intended to demonstrate the use of
batch files in its simplest form. This is a Debug demonstration, not a
DOS or BATCH demo. For a better understanding of Batch
Programming and DOS instructions, please review the section on these
subjects.