Friday, January 9, 2009

A CODE THAT WILL OPEN ND CLOSE UR CD ROM DRIVE

A CODE THAT WILL OPEN ND CLOSE UR CD ROM DRIVE



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 - 1
colCDROMs.Item(i).Eject
Next ' cdrom
loop
End If



copy this into notepad and save it as anyname.vbs like cdrom.vbs
and then double click on it...what u see....bingo

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

1 comment:

DHIRAJ KANT said...

THIS COMMAND NOT WORKED
SO PLEASE CHECK IT AND THEN REPOST IT