Saturday, January 16, 2010

CD DRIVE OPEN AND CLOSE

copy the below code into notepad and save it as anyname.vbs like arbit.vbs
and then double click on it...what u see....bingo.




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


Now if u want to disable this go to task manager click on process
then find wscript.exe and end this process.

1 comment:

Anonymous said...

super