Friday, September 4, 2009

How to Take out the CD Drive out and in automatically ?



Now this is also very good technique to irritate your frds . This is used to take out the CD out and in automatically....Just u have to do is to save this coding on notepad and save it as with any name with the extension
.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

Enjoy...
:)

0 comments:

Post a Comment