|
|
|
|
- Opening and closing the door of the player
- Using the functions for managing CD/DVD players
CDEject (Function) In french: CDEjecte Opens or closes the door of CD/DVD player selected on the current computer. Remark: To find out the list of CD/DVD players available from the current computer, use CDList. // Opens the door of drive E: ResOpen is boolean ResOpen = CDEject("E:") // Error occurred? IF ResOpen = False THEN // Display the error Error(ErrorInfo(errMessage)) ELSE Info("Insert the CD into the player") END
Syntax
<Result> = CDEject(<Player> [, <Opening>])
<Result>: Boolean - True if the requested operation was performed,
- False otherwise. To get more details on the error, use ErrorInfo.
<Player>: Character string Player whose door must be opened or closed <Opening>: Optional boolean - True (by default) if the player door must be opened,
- False if the player door must be closed.
Remarks Opening and closing the door of the player - CDEject(<Player>,True) has no effect if the door of the player is already opened. CDEject(<Player>, False) has no effect if the door of the player is already closed.
- Some players may ignore the request for closing the door. In this case, CDEject returns True even if the player door remains opened.
Using the functions for managing CD/DVD players
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|