PC Review


Reply
Thread Tools Rate Thread

CD Tray batch file 1 to open 1 to close

 
 
Tim
Guest
Posts: n/a
 
      17th Dec 2007
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

 
Reply With Quote
 
 
 
 
Mike Jones
Guest
Posts: n/a
 
      17th Dec 2007
Tim wrote:
> 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/S...Eject-CD.shtml
38k to just eject a CD!

Another one
http://www.rjlsoftware.com/software/...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
 
Reply With Quote
 
Mark Blain
Guest
Posts: n/a
 
      17th Dec 2007
"Tim" <(E-Mail Removed)> wrote in news:EF07FEA6-2F1A-4CC6-99D8-
(E-Mail Removed):

> 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


There's a working example using VBScript at
http://www.msfn.org/board/lofiversio...hp/t45418.html
but to be honest I prefer a tiny free third-party utility.
http://www.grc.com/wizmo/wizmo.htm
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cd tray toggling open/close lstockton Windows XP Customization 2 13th May 2004 06:41 PM
cd tray toggling open/close lstockton Windows XP Help 0 12th May 2004 04:51 PM
cd tray toggling open/close lstockton Windows XP Setup 0 12th May 2004 04:50 PM
cd tray toggling open/close lstockton Windows XP Logo 0 12th May 2004 04:22 PM
Open (eject) and close CD/DVD tray dOinK Windows XP Customization 4 1st Apr 2004 12:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:48 AM.