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

MPW Command Reference


Eject

Built-in

SYNTAX

Eject volume1 [volume2]… [-m]

DESCRIPTION

The Eject command flushes, unmounts, and, if it is a 3.5-inch disk, ejects one or more volumes. You can specify volumes by name or drive number.

Note
If you unmount the current volume, which is the volume containing the current directory, the boot volume becomes the current volume. You can keep the volume mounted by using -m. •

INPUT

None

OUTPUT

None

ALIAS RESOLUTION

Y ou can use aliases to volumes as parameters to this command.

STATUS

Eject can return the following status codes:

0

disk successfully ejected

1

syntax error

2

any other error

PARAMETERS

volume1 [volume2]…

Specifies one or more volumes by name or drive number. Volume names must end with a colon. If you specify a number without a colon, Eject interprets it as a drive number.

OPTIONS

-m

Leaves the specified volumes mounted.

EXAMPLES

The command line

Eject Memos:

ejects and unmounts the Memos disk, while the command line

Eject 1

ejects and unmounts the disk in drive 1, which is the internal floppy drive.

SEE ALSO

Mount

Unmount

Volumes

 
 


Last Updated July 2000