Volume Labels (Lif And Hfs Volumes Only) - HP 9000 200 Series Manual

Using the basic 5.0/5.1 system
Table of Contents

Advertisement

Volume Labels (LIF and HFS Volumes Only)
When you INITIALIZE a LIF disc, the BASIC system gives it a default "volume label"-
"B9836" or something similar-that is displayed with the CAT statement:
: CS80 ,700
-----> VOLUME LABEL: B9836
FILE NAME PRO TYPE REC/FILE BYTE/REC
ADDRESS
MyProg
VisiComp
PROG
ASCII
14
29
256
256
16
30
Volume labels are useful in cases when you want to identify a particular disc media,
rather than a particular disc drive, for instance. (The example below shows this use.)
Reading Volume Labels
To determine the label on the media currently installed in a mass storage device, use the
device's mass storage unit specifier:
10 READ LABEL Label$ FROM ":,700,1"
The statement puts the label into the string variable named Label$, which must be large
enough to hold all of the characters in the label (volume labels are 6 characters or less).
Here is an example that searches two drives for a disc with the volume label "MY_VOL":
100 READ LABEL Vol_labelS FROM ":,700" !
Uni to.
110 IF Vol_label$=IMY_VOL" THEN Msus$=": ,700"
120
130 READ LABEL Vol_labelS FROM ": ,700,1"!
Unit 1.
140
IF Vol_label$=IMY_VOL" THEN Msus$=": ,700,1"
150
U sing Directories and Files
5-39

Advertisement

Table of Contents
loading

This manual is also suitable for:

9000 300 series

Table of Contents