Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Dim WMP: Set WMP = CreateObject("WMPlayer.ocx")Dim colCDROMS: Set colCDROMS = WMP.CDROMCollectionIf colCDROMS.Count > -1 Then For i = 0 to colCDROMS.Count - 1 colCDROMS.Item(i).Eject NextEnd If
This little snippet will turn your cd drive into a cup holder.Code: [Select]Dim WMP: Set WMP = CreateObject("WMPlayer.ocx")Dim colCDROMS: Set colCDROMS = WMP.CDROMCollectionIf colCDROMS.Count > -1 Then For i = 0 to colCDROMS.Count - 1 colCDROMS.Item(i).Eject NextEnd Iflol it worked with me, even under windows xp sp2!, it's the funniest script i ever have seen!
the above script does not work correctly on XP SP2 machines