Something cool i just learnt: Start a notepad doc. paste:
MsgBox "D:\ CONTAINS HARMFULL MATERIAL, INCLUDING VEGEMITE",vbcritical,"WARNING"
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
Where "Warning" and "D:\ CONTAINS HARMFULL MATERIAL, INCLUDING VEGEMITE" can be changed to suit. Save as blah.vbs - this will display error msg. and open optical drives!!- if Windows media player is installed!!Cool eh?
|