[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 130
  • Last Modified:

How to get CD TYPE?

How to get a CD info, using VB. I mean is in the CD-ROM AudioCD or Data CD?

thank you.
0
beciakk
Asked:
beciakk
  • 2
1 Solution
 
kamallCommented:
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
 
kamallCommented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now