Just paste this code in a note pad and save it as abcd.vbs
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 I
The Above Code will keep on Ejecting and Closing the Cd Drive until the computer is restarted.
Comments
Post a Comment
share your thoughts ....