Re: CD eject

new topic     » goto parent     » topic index » view thread      » older message » newer message

{{{ On Sun, 14 Jul 2002 12:58:02 -0400, weddle at psknet.com wrote:

======== The Euphoria Mailing List ========

I'm wondering if anyone has a code (windows) that will access a CD-ROM drive
and make it eject.? Thanks!

You could grab this file: http://www.sysinternals.com/files/sync.zip (18K zipped, 44K unzipped). Then a call to system("sync -e F",0)) where F is the correct drive letter will make it eject, but only if there is media in the drive. (Actually, my CD drive is busted but it works for my zip drive). Messy screen flicker, but it works.

Alternatively, install FlexiCD or WinEject or similar & then you'll have an Eject CD menu entry off the taskbar.

Or if you are feeling really brave, and understand what Interrupt 21h Function 440Dh Minor Code 49h is/how to call it (Juergen Luethje might know) I found that at: http://www.allapi.net/apilist/example.php?example=Eject%20CD & it does something different for NT/2000

Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu