Tandy 1000 MS-DOS Reference Manual page 112

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

Advertisement

Chapter 6 / Command Refereru:e
Examples
for io fin (a: \ b: \
b : \ use r) dod
1
r io f
I
ENTER!
MS-DOS displays the listing for each of the three directories
A: \, B: \, and B: \ USER, in order.
copy con 3dir.bat
I
ENTER
I
rem This file displays directory listings for
io 1, io 2, and io 3
I
ENTER
I
rem it is called 3dlr.bat
[ENTERI
for io io fin
(i.
1 io 2 io 3) dod i r io io f
I
ENTER!
[ill [
ENTER
I
substitutes other directories for those in the previous command
by creating a batch file using replaceable parameters. (See "Cre-
ating a Batch File With Replaceable Parameters" in Part
1.)
To
execute the batch file and see the listings for A: \ BIN,
A: \ GAMES, and A: \ ACCTS, type:
3dlr a:\bln a:\games a:\accts
[ENTER!
MS-DOS first substitutes the directory names, in order, for the
replaceable parameters %1, %2, and %3. Then it does a DIR
command for each directory.
for iof In (*.asm) do type iof
I
ENTER
I
displays all files in the current directory that have the extension
.asm.
for iof in (taxfile autofile homefi"le) do del iof
[ ENTER
I
deletes the three files, in order, from the current directory.
98
~J
,
I
U
I
-.-J
~
i
L..J
,
)
:-.J
J
u
I
:..---l
J
i
!
e-J

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents