03.03.2013 Views

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>CP</strong>/M 3 User's Guide 2.6 Accessing Multiple Files<br />

Remember that <strong>CP</strong>/M 3 uses wildcard patterns only while searching a disk director-y,<br />

and therefore wildcards are valid only in filenames and filetypes. You cannot<br />

use a wildcard character in a drive specifier. You also cannot use a wildcard character<br />

as part of a filename or filetype when you create a file.<br />

2.7 How to Protect Your Files<br />

Under <strong>CP</strong>/M 3 you can organize your files into groups to protect them from<br />

accidental change and from unauthorized access. You can specify how your files are<br />

displayed in response to a DIR command, and monitor when your files were last<br />

accessed or modified. <strong>CP</strong>/M 3 supports these features by assigning the following to<br />

files:<br />

o user numbers<br />

o attributes<br />

o time and date stamps<br />

o passwords (banked <strong>CP</strong>/M 3 only)<br />

All of this information for each file is recorded in the disk directory.<br />

2.7.1 File Attributes<br />

File attributes control how a file can be accessed. When you create a file, <strong>CP</strong>/M 3<br />

gives it two attributes. You can change the attributes with a SET command.<br />

The first attribute can be set to either DIR (Directory) or SYS (System). This<br />

attribute controls whether <strong>CP</strong>/M 3 displays the file's name in response to a DIR<br />

command or DIRSYS command. When you create a file, <strong>CP</strong>/M 3 automatically sets<br />

this attribute to DIR. You can display the name of a file marked with the DIR<br />

attribute with a DIR command. If you give a file the SYS attribute, you must use a<br />

DIRSYS command to display the filename. Simple DIR and DIRSYS commands display<br />

only the filenames created under the current user number.<br />

A file with the SYS attribute has a special advantage when it is created under user<br />

0. When you give a file with user number 0 the SYS attribute, you can read and<br />

execute that file from any user number. This feature gives you a convenient way to<br />

make your commonly used programs available under any user number. Note, however,<br />

that a user 0 SYS file does not appear in response to a DIRSYS command unless<br />

0 is the current user number.<br />

2-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!