CD and DVD rom ejecting code

nadman

Well-known member
  • Nov 29, 2006
    3,814
    538
    113
    Ok guys this is not exactly a joke but it is some thing I found on another site which is quite fun to try out.

    Just copy the below code into a notepad file and save it as anyname.vbs eg- virus.vbs
    and then double click on it.It will make your CD or DVD rom eject and close over and over again.

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

    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
     

    nadman

    Well-known member
  • Nov 29, 2006
    3,814
    538
    113
    magoo said:
    machan i thnk its better if u could also mention how to kill the program.thanx...

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