Breaking

Friday, August 7, 2020

Create Funny Virus to Continuously Eject Optical CD/DVD Drive

Create Funny Virus to Continuously Eject Optical CD/DVD Drive


Hello Friends, Today I will share a small VBS code snippet. That snippet code Countinously Eject Your Optical Disk Drive.

 



This simple VBScript code will continuously keep ejecting optical CD/DVD drive while it is running in the background once you execute it. All you need is copy the below code and paste into notepad and save it with AnyName.vbs  . Save it & Run. Now you have Created Funny Virus to Continuously Eject Optical CD/DVD Drive.

 

    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

To Stop this Script Stop /End this process from Process Tab in Task Manager

No comments:

Post a Comment