Establishes a volume label for a floppy or hard disk


     VOLUME(<cDiskName>) --> lEstablished


     <cDiskName>  Designates a name to use on a new volume label.  A
     drive designation is allowed; path designation and wildcards are not.


     VOLUME() returns .T. when the new volume entry is created.


     DOS provides a volume label as a disk identifier.  With the VOLUME()
     function you can establish this label.  There is never more than one
     label per floppy or hard disk.  A volume label can be up to 11
     characters long, but when you use a period (.) it must always follow the
     eighth character.

     You can query the volume label with FILESEEK(), since the value 8 is
     assigned as the volume attribute.


     .  A new volume label is always created in the root directory.

     .  The function acknowledges the CSETSAFETY() setting and, if
        necessary, does not overwrite an existing label.


     .  Establish a volume label for A: drive:

     .  Query the A: drive volume label:

        ? FILESEEK("A:\*.*", 8)      // Based on example 1 "VOLO815"

See Also: FILESEEK()


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.