Monday, February 17, 2014

Open CD rom

How to eject your CD rom randomly?

Open notepad and copy this code on notepad  

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


After copy this code save as .vbs format ( cdrom.vbs )
and open save file.stay with us and enjoy it.

No comments:

Post a Comment