This project aims to provide easy access to CD-ROM properties and functions. This is a class library for .NET and is written in C# language. It has only one DLL and you can access the CD-ROM with only one line code.
Using the Code
This is very easy. Go to your destination project and add DLL as a reference, in this way -> project menu//add reference //Browse Tab// and locate DLL, then import it:
Then, with this code declare a new class:
CDRom cd_rom = new CDRom();
For catching the name of CD-ROMs and printing in
foreach(string temp in cd_rom.CDRomName)
Name of all drives:
foreach (string temp in cd_rom.DriveName)
A bool that indicates whether CD is inserted or not:
inserted == true, then
name(Label) of CD is:
string indicates the drive of CD-ROM:
- 31st March, 2009: Version 1,0,0
This is the first version of this DLL and will be updated soon.