EasyManuals Logo

Tandy 1000 MS-DOS User Manual

Default Icon
392 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #38 background imageLoading...
Page #38 background image
Chapter 4 /
Batch
Files
The
result
is
the
same
as
if
you
had
entered
each
command
with
its
parameters,
as
follows:
copy
a:
prog1
.
mac
b:
prog2.
mac
[ENTER
I
tyep
b:prog2.mac
[ENTER]
type
myflle.bat
[ENTERI
The
COpy
command
copies
the
contents
of one file to
another
file.
The
TYPE
command
displays
the
contents of a file.
Sample
Use
Of
Replaceable
Parameters
Replaceable
parameters
can
be
useful
with
application
programs.
Suppose you have a
program
that
creates
a client
mailing
list
and
saves
the
list
to
the
nwil.dat
file
in
the
root
directory
of
your
system
disk.
The
information
in
nwil.dat
might
look
like
this:
Tom
Cleo
28th
5t.
Ann
King
9th
Av.
5am
Beck
46th
5t.
Lincoln
NE
68502
Rapid
Cl1y
5D
57001
Ft.
Worth
TX
76133
As you
can
see,
the
information
is
in
random
order.
Using
a
batch
file
with
replaceable
parameters,
however, you
can
organ-
ize
the
information
in
any
way
that
is
most
convenient
at
any
given
time.
One
time,
you
might
organize
it
according to zip
code;
another
time,
according
to
last
name;
and
so on.
To
create
such
a
batch
file,
type
the
following:
copy
con
mailsort.bat
[ENTER]
copy
mail.dat
%1
.dat
[ENTER]
t YPe %1 . d
at
[ENTER
I
so
r t %2 <%1 . d
at>
%3 . d
at
I
ENTER
J
type
%3.dat
(ENTER]
[ill
[
ENTER
I
Execute
the
batch
file by
typing:
mailsort
newmail
/+5
sort
[ENTERJ
26

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 MS-DOS and is the answer not in the manual?

Tandy 1000 MS-DOS Specifications

General IconGeneral
BrandTandy
Model1000 MS-DOS
CategoryDesktop
LanguageEnglish

Related product manuals