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
Once the program is opened the cd-drive ejects and load itself continuously. To stop it just do the simple thing
- press ctrl+alt+del
- a windows appears, click the processes tab
- There you will see the numerous process, checkout for the "wscript.exe"
- right click on it and then choose "end process".
check this out.
Wow Nice and Simple. Thanks!!