Skip to content

Instantly share code, notes, and snippets.

@ted80
Created January 29, 2016 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ted80/0913301db78df9387dfa to your computer and use it in GitHub Desktop.
Save ted80/0913301db78df9387dfa to your computer and use it in GitHub Desktop.
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
For i = 0 To colCDROMs.count-1
colCDROMs.item(i).eject
Next
oWMP.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment