[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 131
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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