Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Detect cdrom drive letter

Posted on 1999-01-13
3
Medium Priority
?
144 Views
Last Modified: 2010-04-04
How can I see what the drive letter from the first cdromplayer is?

Thanks
Vincent
0
Comment
Question by:Vincentg
  • 2
3 Comments
 

Author Comment

by:Vincentg
ID: 1356343
Edited text of question
0
 
LVL 20

Accepted Solution

by:
Madshi earned 40 total points
ID: 1356344
Vincent,

use this function:

function TellMeFirstCDRom : char;
var c1 : cardinal;
begin
  c1:=GetLogicalDrives;
  for result:='A' to 'Z' do
    if odd(c1 shr (ord(result)-ord('A'))) then begin
      if GetDriveType(PChar(result+':\'))=DRIVE_CDROM then
        exit;
  result:=#0;
end;

Regards, Madshi.
0
 

Author Comment

by:Vincentg
ID: 1356345
Thanks a lot Madshi....
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question