CD Tray batch file 1 to open 1 to close

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

Does any one know of a batch file to open the CD tray?
To close it there after?

I want a batch to do so without going into the other room with the KVM
switch.

Windows XP/ME/Vista all


Any help appreciated.

TJ
 
Tim said:
Does any one know of a batch file to open the CD tray?
To close it there after?

I want a batch to do so without going into the other room with the KVM
switch.

Windows XP/ME/Vista all

I think this has been done before in alt.msdos.batch

anyway 4th google hit is:
http://www.softpedia.com/get/Tweak/System-Tweak/Alex-Nolan-Eject-CD.shtml
38k to just eject a CD!

Another one
http://www.rjlsoftware.com/software/utility/open_cd/download.shtml
92k!


Here's some assembler:


title 'EJECTCD'
;; 06/08/2004 recreate src
..radix 16
code segment byte public 'CODE'
assume cs:code,ds:code
org 100h
top:

MOV dx,offset strin
mov di,dx
mov ax,3d21h
int 21
jb badexit
mov bx,ax
mov cx,1
mov byte ptr [di],0
mov ax,4403h
int 21
jnb goodexit
mov byte ptr [di],5
mov ax,4403h
int 21
jc badexit
goodexit: mov al,0h
badexit: mov ah,4Ch
int 21
strin DB '/D:MSCD000',0

Presumably the close function is
 
Back
Top