Solved

How to get CD TYPE?

Posted on 1998-06-10
2
125 Views
Last Modified: 2012-08-14
How to get a CD info, using VB. I mean is in the CD-ROM AudioCD or Data CD?

thank you.
0
Comment
Question by:beciakk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 7

Accepted Solution

by:
kamall earned 60 total points
ID: 1463026
You can use a file list box and set its path to the CD-ROM drive, then refresh it using File1.Refresh . Then check if the file list box has any items in the ListCount property. If it has, then the CD is a Data CD.
Regards
0
 
LVL 7

Expert Comment

by:kamall
ID: 1463027
Oh..., one thing I forgot....
You must put:
On Error Resume Next
at the beginning of your code in the SUB where you put the code for the File list box, because otherwise you will get an error if the CD is an Audio CD or when there is no CD in the drive.
Regards
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
passing parameter in sql procedure 9 70
vb6 connector to SQL Server 2 42
VB6 common control 6 sp6 object library not registerd 3 62
Collapse and expand table in Word 2010 2 154
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

732 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