AutoMove CD/DVD

"valery_vi" <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
Hi,

I have this universal script to drive the CD/DVD device in any cases. 
It (alone) can open the closed device and close the opened one.
And it is good!
:-)

;Move CD/DVD tray
$CDrive = 'f:'

$CDState = DriveStatus($CDrive & '\')
if $CDState = 'NOTREADY' then 
 CDTray($CDrive, 'closed')
else
 CDTray($CDrive, 'open')
endif
Sleep(2000)
$CDState = DriveStatus($CDrive & '\')
if $CDState = 'NOTREADY' then 
 CDTray($CDrive, 'open')
endif

However there is absurd with it, I think. Script works fine with disk 
on tray, only. Try it.

How can I rewrite this script to move CD/DVD tray without CD/DVD disk 
on it?

BTW. Explorer can 'Eject' the CD/DVD, only. Why? 

Any Ideas?
Valery
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.