EjectDisk

Description:

baEjectDisk ejects a CD.

Platforms:

Windows and Macintosh

Usage:

Result = baEjectDisk( Drive )

Arguments:

String.
The drive to eject.

Returns:

Integer.
Returns 1 if successful, else 0.

Examples:

Director:
OK = baEjectDisk( "e:\" ) -- eject E drive

Authorware:
OK := baEjectDisk( "e:\\" )
 

Notes:

On Windows, you can specify the drive as a drive letter - "e:\", or as the name of the CD - "magic:". If using the name of the CD, the name must end with a colon.

On Macintosh, you must use the name of the disk.