Amos Professional Manual  Contents  Index

Disc Access


For example, the directory containing the current fonts used by AMOS Professional is called FONTS: whereas the SAY command uses a library file that can be examined by typing the following line from Direct Mode:

D> Dir "Libs:"

DIR
instruction: print directory of the current disc
Dir
Dir path$

The DIR command is used to examine the directory of the current disc and list all of its files on screen, like this:

D> Dir

Any folders in the listing will be distinguished by a leading asterisk character *. The listing can be stopped at any time by pressing the [Space-bar] and then started again in the same way. Note that if you change discs without informing AMOS Professional and then try to get a directory listing, you may be presented with a system requester. The simple solution is to re-insert the requested disc and try again.

DIR/W
instruction: print out directory in two columns
Dir/W
Dir paths$ /W

This command performs exactly the same task as DIR, but displays the list of files in two separate columns across the screen. So by using this double width, twice as many filenames can appear on screen at any one time.

There is no need for DIR or DIR/W to list every file on the disc. Certain files or groups of files can be extracted by specifying optional "pathways", so that only files which satisfy a certain set of conditions are listed.

The broadest of these paths gives the name of the disc or the drive to be examined. A colon must be added to the disc name, like this:

E> Dir "FONTS:"
   Dir "Dh0:"

The next selective category that can be defined is a single folder of filenames to be listed. For example:

X> Dir "Objects/"
   Dir "AMOSPro_Examples:Objects/"
Back    Next
10.02.02