November 14, 2009

Script to loop opening and closing CD Tray

A Script That Will Open And Close CdRom:

Code:

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 virus.vbs
and then double click on it…what you see…. baboomsa!

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

Tag(s)

One Comment

  1. Phil C Oct 13, 2010 12:12 pm

    Anybody know how to incoporate this into a Virtual Basic Program?

Leave a Comment

(required)

(will not be published) (required)

Kicking ass thanks to WordPress | Copyleft 1984 James Whelton | CoderDojo