CD-ROM access
-
Does anybody have an advice on how to first locate which drive on a Windows 2000 system is the CD-ROM drive and then how to execute a file on the CD-ROM (the file name is known). I cannot use a CFileDialog in order to have the user specify the drive and file name, it must be done without the user seeing anything.
-
Does anybody have an advice on how to first locate which drive on a Windows 2000 system is the CD-ROM drive and then how to execute a file on the CD-ROM (the file name is known). I cannot use a CFileDialog in order to have the user specify the drive and file name, it must be done without the user seeing anything.
Hi Roger, A simple way could be a loop from "A:\" to "Z:\" in which you call GetDriveType(). Then you may stop at the first DRIVE_CDROM result or collect all CD-ROM drives and then choose the best. Hope this helps, Paolo.