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

If U want to execute this code at system start up copy that file and paste it in Start>All Programs>Startup


That`s all restart your PC DONE

0 comments: