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 #180 background imageLoading...
Page #180 background image
Chapter 6 / Command Reference
MS-DOS automatically
substitutes
each occurrence
of
file-
name-in
all
batch
files-with
Myfile.
Now
suppose
you
want
to
substitute
Samfile
for
filename. Reset filename by typing:
set
fllename=samflle
I
ENTER!
To
void
the setting, type:
set
filename=
[ENTER!
The SET command lets you
write
versatile batch files. An
example
is
to
use
the
SET
and
the
PROMPT
commands
together to
set
up a series of easy-to-change system prompts.
Suppose you have four system prompts, all of which you use
often.
Rather
than
repeatedly entering
the
PROMPT
com-
mand
with
parameters,
use
batch
files to
do
the
work
for
you.
First, assign each prompt a unique
parameter
that
is to repre-
sent
it
in
a
batch
file.
I promptd = default prompt (current drive)
promptl
=
time
and
date
prompt2
current
directory
I prompt3 = version number
and
a
greater-than
symbol
Then
set
a name
for
each string (the codes required
by
the
PROMPT command). For example:
set
promptd=$n$g
I
ENTER
I
set
prompt1=The
tlme
is
$t$
__
The
date
is
$d
I
ENTER
I
set
prompt2=$p
IENTER!
set
prompt3=$v$g
I
ENTER
I
166
I \
U
I J
~
: I
L-J
I )
: I
L-J
I i
LJ
I I
LJ
j
, I
~
, I
)
---l
\
~
I
~

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