MSI Factory 2.3

Drive.Eject

Drive.Eject

This is the first topic This is the last topic  

Drive.Eject

This is the first topic This is the last topic  

OverviewExamples

Drive.Eject (

string Drive )

Example 1

Drive.Eject(_SourceDrive);

Ejects the CD/DVD-ROM drive the script is currently running from.

Example 2

-- Eject the current drive.

Drive.Eject(_SourceDrive);

 

-- Determine if an error occurred.

error = Application.GetLastError();

 

-- If an error occurred, display the error message.

if (error ~= 0) then

   result = Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);

end

Ejects the CD/DVD-ROM drive the script is currently running from. If an error occurs, the error code message is shown in a dialog message.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us