Drive.Eject |
|
|
|
Drive.Eject |
|
|
|
|
||
OverviewExamples
Drive.Eject(_SourceDrive);
Ejects the CD/DVD-ROM drive the script is currently running from.
-- 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