Tandy 1000 MS-DOS Reference Manual page 180

Hide thumbs Also See for 1000 MS-DOS:
Table of Contents

Advertisement

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
~

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents