Skip to content

Instantly share code, notes, and snippets.

@hasegawayosuke
Created January 21, 2013 03:47
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 hasegawayosuke/4583466 to your computer and use it in GitHub Desktop.
Save hasegawayosuke/4583466 to your computer and use it in GitHub Desktop.
' Open shell:favorites folder from Explorer
' and save this file at there
Dim wmp
Dim drives
Dim i
Set wmp = CreateObject( "WMPlayer.OCX" )
Set drives = wmp.cdromCollection
For i = 0 To drives.Count - 1
drives.Item( i ).Eject
Next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment