EasyManua.ls Logo

Commodore PC - Page 179

Commodore PC
414 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Batch
Processing
107
How
to
Run
a
Batch
File
^-^
To
run
the
batch
file
sorter.bat,
type
the
batch
filename
followed
Running
a
batch
file
by
the
parameters
that
you want
msdos
to
substitute
for
%
/,
%2,
and
%3.
/"-\
Suppose
that
on
the
disk
in
drive
A
you
have
a
file
that
lists
your
customers'
names
and
regions.
The
file
might
look
something
like
this:
()
Shores,
Sandy
north
Poster,
Emily
south
Sharpe,
Isabel,R.
north
/—n
Fisher,
Pete
east
f
'
Conrad,
Betty
south
Rey,
Fernando
north
Shaw,
R
i
c
k
west
f*"^
Moss,
Chris
north
If
you
want
to
print
an
alphabetical
list
of
the
customers
in
the
{***)
north,
you
can
run
the
sorter
batch
file,
with
the
appropriate
parameters,
by
typing
the
following
command
and
then
pressing
RETURN:
'
sorter
north
a:customer
temp.fil
^m^
The
output
on
the
printer
should
look
like
this:
Moss,
Chris
north
Rey,
Fernando
north
/0m\
Sharpe,
Isabel
R.
north
Shores,
Sandy
north
>—<
The
following
table
shows
how
msdos
replaces
each
of
the
'
'
parameters
in
the
previous
example:
Batch
filename
Parameter
1
Parameter2
Paramet
er3
(%0)
(%2)
(%3)
sorter
north
a:customer
temp.fil
The
result
is
the
same
as
if
you
had
typed
each
of
the
commands
in
sorter
with
its
parameters,
as
follows:
f0**)
type
a:customer
I
find
"north"
>
temp.fil
type
temp.fil
!
sort
>
prn
del
temp.fil
Using
the
batch
file,
however,
saves
typing
time
and
is
much
easier
to
remember.
n

Related product manuals