This tutorial explains how to make vb script that eject your CD-DVD drives …. infinitely.
1) Run Notepad
2) Copy and Paste VB script code into notepad
Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
do
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
loop
End If
3) Save as name_what_ever_you_want .vbs , for example ejectCD.vbs
4) Double Click the saved file ! (ejectCD.vbs)
[Credit:Badboyworld.co]