Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CD-ROM access

CD-ROM access

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Roger
    wrote on last edited by
    #1

    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.

    P 1 Reply Last reply
    0
    • R Roger

      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.

      P Offline
      P Offline
      Paolo Messina
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups