| Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 | 1. Problem with CD functions #12675 | I've a script that will launch "Exact Audio Copy" to rip a CD. That part is fine, so I wanted to "open" the CD tray before calling this program.
Say "Open="CdOpenDevice("CDhandle","D") Say "Unlock="CdOperation(CDhandle,"UNLOCK") <-- added this later, no help Say "Eject="CdOperation(CDhandle,"EJECT") Say "Close="CdCloseDevice(CDhandle)
The Open, Unlock, and Close all return a null value. The Eject returns "Invalid function"
Also, the CD drive remains locked so I can't manually open the tray, and when Exact Audio Copy kicks off, it reports "No audio CD in drive" so the CD functions leave the drive messed up.
Commenting out the above code, EAC runs fine and I can manually open the tray.
So, 1) Eject isn't working 2) Close isn't releasing (or at least unlocking) the CD driveDoug | 2. #12676 | Your CDROM drive doesn't appear to support the IOCTL_STORAGE_EJECT_MEDIA command. I'd try the code on a different drive. | 3. #12678 Posted by: PeterJ 2009-02-03 13:54:50 | ... works fine for me! | 4. #12680 | Is there a way to test if the drive supports that command or not ? Doing a right click on the drive letter, in explorer, then "eject", that works.Doug | 5. #12681 | You're not running this code on Windows 95/98/ME? Those don't support the command. | 6. #12682 | No, this is an XP system. All other programs, Nero, Exact Audio Copy, Goldwave, Explorer, have no problem ejecting the tray. Doug | Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 |
|
|