Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


Volumes

Built-in

SYNTAX

Volumes [volume]… [-l] [-local] [-q] [-server]

DESCRIPTION

The Volumes command lists to standard output the specified volumes, along with any requested information (-l). To list all mounted volumes, you execute Volumes without any parameters.

INPUT

None

OUTPUT

Standard output.

STATUS

Volumes can return the following status codes:

0

no errors

1

syntax error

2

specified volume does not exist

PARAMETERS

volume

Specifies one or more volumes by name or disk drive number. If volume ends with a colon (:), Volumes assumes it is a volume name. If volume is a number without a colon, Volumes interprets it as a disk drive number.

OPTIONS

-l

Lists volumes in long format--giving the volume name, drive ('-' if offline), capacity, free space, number of files, and number of directories for each.

-local

Lists only local volumes.

-q

Inhibits enclosing volume names in quotation marks. Normally Volumes places quotation marks around volume names containing spaces or special characters.

-server

Lists only server volumes.

EXAMPLES

The command line

Volumes -l

provides information on all mounted volumes in the following format:

Name    Drive    Size    Free  Files  Dirs
----    ----- ------- -------  -----  ----
HD:         3   1021M    437M   6132   783

The following command line lists all mounted server volumes:

Volumes -server

 
 


Last Updated July 2000