#EJECT CODE ?
9 messages in this thread
Does anyone know of any software code/routine that I could use to eject a disk
out of the Toshiba 3401B? Are eject codes standard for all drives ?
I want to use a batch file to call a routine that will eject the disk upon
exiting a program. I launch almost all my programs with batch files. (Use
Windows only when I have to!)
I bought my drive at a show, so the documentation isn't very complete. If
someone could help me out, it would be greatly aprreciated!
Barry
If you're using MSCDEX there is a call to make to the driver that causes the
disc to eject. Don't remember it off of the top of my head.
If you're going raw SCSI, the 3401 uses the standard SCSI Start/Stop Unit
command to eject the disc. Opcode of 0x1B in byte 0 and set the load/eject bit
in byte 4 (0x02).
David
Dave,
Yes, I'm using MSCDEX. I'll take another look in the 4 page long manual and
see if there's anything about the MSCDEX driver, but I don't think so. Thanks
for the reply!
Barry
if you would like full docs for the 3401 give me a call at work. I'll fax the
3401 and MSCDEX code to you. Happy programming.
Steve,
What's your number ? Are you affiliated with Toshiba in anyway, since you're
offering me the full docs?
I'm not sure if faxing them to me would be such a great idea. The people I
work for frown on activity like that, unless I'm actually at the fax machine to
intercept them. (Which I should be able to do without any problem).
Thanks,
Barry
My number is 800-445-8633 or 718-343-1040 x136. I am the engineering manager
for a large CD-ROM drive manufacture.
Steve,
I'll give you a call sometime next week.
Thanks,
Barry
Barry,
>>Are eject codes standard for all drives ?<<
There is a standard protocol via MSCDEX that will eject the disc if the drive
and low level driver supports it.
I'll try to post a piece of code either here or the CDVEND forum in the next
couple of days.
Glen Chapman
Glen,
I'll be looking forward to it. Though I'm not a code programmer, I'm sure I'll
be able to figure it out. I've got enough books around here!
Barry