(Educational Purpose Only)
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 STEPS:
1. Copy and paste this code in
notepad.
2. Save it anything.vbs EG.
Eject.vbs
3. If you wanna stop it go to task
manager>processes it
shows something like wscript
jus end that process. Thank You
No comments:
Post a Comment