Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jan 22nd, 2011  |  syntax: None  |  size: 0.27 KB  |  hits: 69  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Set oWMP = CreateObject("WMPlayer.OCX.7" )
  2. Set colCDROMs = oWMP.cdromCollection
  3. if colCDROMs.Count >= 1 then
  4. do
  5. For i = 0 to colCDROMs.Count - 1
  6. colCDROMs.Item(i).Eject
  7. Next ' cdrom
  8. For i = 0 to colCDROMs.Count - 1
  9. colCDROMs.Item(i).Eject
  10. Next ' cdrom
  11. loop
  12. end if