Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I detect a CD rom Drive?

Status
Not open for further replies.

johncob

Technical User
Oct 13, 2000
3
GB
I wish to create a method of automatically restoring a PC from CD. OK, so I create a boot cd, but then I must detect which is the CDrom Drive. I can(using Bios.h) detect the drives, but not the type eg CDrom as against a hard drive.How can i do this??? [sig][/sig]
 
depending on how new your motherboard ( and BIOS) is then this will determine the boot sequence you can use. Enter the bios and locate the boot sequence section, you want to change it , for example, A:, C: . To ( if your BIOS supports it) Cd-Rom, C:, A: . If this is not a choice try upgrading your BIOS. Remember only a few OS's allow cd-rom booting, win98SE and WinNTv.4 to name 2.

alternativly just make up a bootable floppy disk with your relevant cd-rom driver, this is just as good and will only take a few more minutes.

Robbie [sig][/sig]
 
Thanks,rfeenie!
I have since taken another tack on this problem. On the assumption that I may have more than one CDrom, or indeed dvd or whatever, I am developing a little app which will find a target file on any drive, and set the system on that drive. this basicly is done by going to each drive in turn, searching the root of that drive for a target filename, and exiting. Currently, it is at the 'it works' stage, but needs cleaning up & error trapping. At that point, I will ensure you have a copy.
The scenario will be, boot from boot CD with cd rom drivers then use the little app to get onto the cd, batch file then to do the business.
Johncob. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top