PRINT LABEL and READ LABEL are used to set and read the volume label of a disk drive. HTBasic does not support PRINT LABEL; you must use the Windows "LABEL" command or the File Manager. This example shows the use of READ LABEL:
10 MASS STORAGE IS "C:"
20 READ LABEL A$
30 IF A$="No Label" THEN
40 PRINT "The volume in drive C has no label"
50 ELSE
60 PRINT "The volume in drive C is ";A$
70 END IF
80 END
|