DelphiFAQ Home Search:

Eject and close CD-Drive

 

comments4 comments. Current rating: 3 stars (1 votes). Leave comments and/ or rate it.

These two function calls open and close the CD tray.
Because the command "wait" is included in the command string, the function returns after the command has been executed:

uses
  MMSystem;
  
  { open the CD tray }
  mciSendString('Set cdaudio door open wait', nil, 0, 0);

  { close the CD tray }
  mciSendString('Set cdaudio door closed wait', nil, 0, 0);

Comments:

2006-02-01, 14:35:22
sosingus@yahoo.com from  
This works only when there is only one audio device otherwise no.
2006-02-01, 14:37:26
sosingus@yahoo.com from  
rating
This works only when there is only one audio device otherwise no.
2008-01-13, 03:51:33
ASM.Anuradha@gmail.com from Sri Lanka  
Thank u very much

Keywords:

2008-05-02, 23:01:45
anonymous from India  
thanks boss

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Washington, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
Leave your comment here:
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.