CD Tray batch file 1 to open 1 to close

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
 
M

Mike Jones

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top