Continually pop out CD Drive using VBScript

on 30 December 2010

Hey Friends, Lets do some fun. We are going to continuously pop out CD Drive. We can do this by using VB Script.

To make your CD drive continually pop out, perform the following steps:

  1. Open Notepad
  2. Copy following script in notepad.
  3. 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
  4. Save it as "Anything.VBS" and double click on it to open it.
  5. Enjoy

To stop this script press CTRL+ALT+DELETE & open Task Manager. Then in Processes Tag Select "wscript.exe" & Click on End Process.

Note: This is not a virus but your antivirus may detect it as virus. In this case just allow this script to run instead of deleting the VB Script file.

0 comments:

Post a Comment