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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CP</strong>/M 3 User's Guide 5.2 How Commands Are Described<br />

Let's look at some examples of syntax notation. The <strong>CP</strong>/M 3 DIR (DIRectory)<br />

command displays the names of files cataloged in the disk directory and, optionally,<br />

displays other information about the files.<br />

The syntax of the DIR command with options shows how to use the command<br />

line syntax notation:<br />

Syntax: DIR{fd:{|}filespec}{[options]}<br />

| | |<br />

optional optional optional<br />

This tells you that the command tail following the command keyword DIR is optional.<br />

DIR alone is a valid command, but you can include a file specification, or a drive<br />

specification, or 'ust the options in the command line. Therefore,<br />

DIR<br />

DIR filespec<br />

DIR d:<br />

DIR [RO]<br />

are valid commands. Furthermore, the drive or file specification can be followed by<br />

another optional value selected from one of the following list of DIR options:<br />

RO<br />

RW<br />

DIR<br />

SYS<br />

Therefore,<br />

DIR d:filespec [RO]<br />

is a valid command.<br />

Recall that in Section 2 you learned about wildcards in filenames and filetypes.<br />

The DIR command accepts wildcards in the file specification,<br />

5-7

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

Saved successfully!

Ooh no, something went wrong!