Wild Cards - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

Similarly, you can override the default USE R number assignment (U SE R numbers
allow you to partition-off the directory) byspecifying the USE R number (in the range
o
to 15) as a prefix to the filename. Thus, fOl' example:
LOAD "15:PROG.BAS"
.... and ....
SAVE "15:PROG.BAS"
.... would load and save the program to the USE R number 15 section of the disc,
whatever the default USE R number setting. (See the IUS E R command, ahead.)
Finally, it is possible to override both default USE Rand D R I V E settings (in that
order) by specifying them together in the prefix to the filename, for example:
RUN "15B:PROG.BAS"
Wild cards
It is often required to perform some disc operation (copying, erasing, etc.) on more
than one disc file. When a filename is specified for a particular operation, AMSDOS
scans the disc directory looking for a name which exactly matches. However, it is
possible (where the command allows) to perform the operation on a group of files
where some of the characters in the filenames can be 'don't care'. This is shown by
using the character? in the 'don't care' position. If the whole block (or remainder of
the whole block) of any part of the filename is 'don't care', then the block of ?'s can be
abbreviated to the symbol
*.
Thus, for example, F RED.
*
is shorthand for
F RED. ? ? ? and F
* .
BA S is shorthand for F ? ? ? ? ? ? ? • BA S
Finally, the expression
* . *
means 'all files'.
Examples:
DIRECTORY
Match
*.
BAS
Match F RED? • BA S
Ma tch F
* .
BA?
BERT.BAS
BERT.BAS
FRED1.BAS
FRED1.BAS
FRED1.BAS
FRED1
~BAS
FRED2.BAS
FRED2.BAS
FRED2.BAS
FRED2.BAS
FRED3.BAK
FRED3.BAK
FRED3.BAS
FRED3.BAS
FRED3.BAS
FRED3.BAS
FINISH.BAS
FINISH.BAS
FINISH.BAS
AMSDOS and
CPIM
Chapter 5 Page 5

Advertisement

Table of Contents
loading

Table of Contents

Save PDF