<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Comments for How to programmatically open and close the CD-Rom drive.</title>
<link rel="alternate" type="text/plain" href="http://dn.codegear.com/article/28956" title="How to programmatically open and close the CD-Rom drive." />
<link rel="self" type="application/atom+xml" href="http://dn.codegear.com/article/28956/feed" title="Comments for How to programmatically open and close the CD-Rom drive." />
<id>http://dn.codegear.com/article/28956</id>
<updated>2008-11-21T15:09:24-08:00</updated>
<entry>
<title>re: How to programmatically open and close the CD-Rom drive.</title>
<author>
<name>Bas Groot</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=37730</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=37730</id>
<updated>2004-10-23T13:39:10-07:00</updated>
<published>2004-10-23T13:39:10-07:00</published>
<summary>re: How to programmatically open and close the CD-Rom drive.</summary>
<content>Improved close function, tested on XP only:program CDROM_Close;{$APPTYPE CONSOLE}uses  SysUtils,  MMSystem;begin  if ParamCount &lt;&gt; 1 then    WriteLn('Give drive letter as parameter')  else  begin    // Close drive X:    mciSendString(PChar('open cdaudio!' + ParamStr(1) + ': alias drive'), nil, 0, 0);    mciSendString('set drive door closed wait', nil, 0, 0);    WriteLn('Drive ' + ParamStr(1) + ' closed');  end;end.</content>
</entry>
<entry>
<title>How to programmatically open and close the CD-Rom drive.</title>
<author>
<name>Craven Weasel</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=34792</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=34792</id>
<updated>2003-06-14T13:50:46-07:00</updated>
<published>2003-06-14T13:50:46-07:00</published>
<summary>How to programmatically open and close the CD-Rom drive.</summary>
<content>I use Delphi v5 and Windows XP. The four functions work fine except that when you start your program the fourth function (ie, &quot;close specific drive&quot;) does not work until you first open the drive with the third function (ie, &quot;open specific drive&quot;).Personally, I think that makes functions #3 and #4 useless. If it doesn't work reliably it's not worth using at all.</content>
</entry>
<entry>
<title>How to programmatically open and close the CD-Rom drive.</title>
<author>
<name>Radu Alexandru Popescu</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=34528</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=34528</id>
<updated>2003-04-27T06:48:12-07:00</updated>
<published>2003-04-27T06:48:12-07:00</published>
<summary>How to programmatically open and close the CD-Rom drive.</summary>
<content>I am using Windows XP Home Edition and Delphi 6. My CD-ROM is a single button CD-ROM. The progrgam works perfect, but I was wandering if it can be opened and closed from the same button.</content>
</entry>
<entry>
<title>How to programmatically open and close the CD-Rom drive.</title>
<author>
<name>Joubert Attila</name>
<uri>http://threads.codegear.com/threads/threads.exe/userall?commentid=34222</uri>
</author>
<id>http://threads.codegear.com/threads/threads.exe/view?commentid=34222</id>
<updated>2003-03-06T03:26:17-08:00</updated>
<published>2003-03-06T03:26:17-08:00</published>
<summary>How to programmatically open and close the CD-Rom drive.</summary>
<content>The close function doesn't work!Only the open works fine...</content>
</entry>
</feed>
