You might want to play a prank on your friends pc by making his cd-dvd rom to continuesly eject. With this post you would be able to make a vb script that would automatically eject the Cd-DvD Rom. Simply follow the steps below.
1. Launch Notepad.
2. Copy and paste this code into notepad.
>
> Set oWMP=Createobject (“WMPlayer.OCX.7”)
> Set colCDROMs=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
3. Save as what_ever_name.vbs for example myejector.vbs
4. Launch it by double clicking the myejector.vbs
To stop this, Launch Task Manager, then go to processes and search for wscript.exe and click End Process.