Open/Close CD/DVD Rom Script:
To open the cd/dvd drive.. follow the steps :
Open notepad and copy the following code in it :
Set oWMP = createObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
End If
Now save this file as "Open.vbs"
When you click on it, the disk drive will be opened.
To close the cd/dvd drive .. follow the steps :
Open notepad and copy the following code in it :
Set oWMP = createObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
colCDROMs.Item(i).Eject
Next ' cdrom
End If
Now save this file as "Close.vbs"
When you click on it,the disk drive will be closed.
.