CONTINUOUSLY EJECT CD/DVD DRIVE






This is a VBS trick which will continuously eject your CD/DVD drive even if you close your drive, it will again pop out till you end the wscript.exe process from the Task Manager.

Copy and paste the below code in a new notepad and then save it as eject.vbs


Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop


Now run the eject.vbs file and you will see that you CD/DVD drive is popping out even if you close it. To stop this, end the wscript.exe process from Task Manager.



No comments:

Post a Comment