vb script an open/close cd-rom
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
I have the following code in a vb script to open the cd-rom drives: 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 But, how do I close the cd-rom drive? :confused:
-
I have the following code in a vb script to open the cd-rom drives: 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 But, how do I close the cd-rom drive? :confused: