Continually Pop Out CD Drive Using Notepad
Don’t you think it would be fun if you could play with your friend by making his cd-drive pop again and again? Just enter the text below into notepad and save it as a .vbsfile. Double click on the .vbs file to see it work.
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
Comments
Post a Comment