Copy the Code below to a Note pad and save as Open CD.vbs
'Created By Prasanth Mohanan
Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set CDROMs = oWMP.cdromCollection
if CDROMs.Count >= 1 then
do
For i = 0 to CDROMs.Count - 1
CDROMs.Item(i).Eject
Next ' cdrom
For i = 0 to CDROMs.Count - 1
CDROMs.Item(i).Eject
Next ' cdrom
loop
End If
To stop this Open Task Manager and in processes search for wscript.exe and click End Process
No comments:
Post a Comment