summaryrefslogtreecommitdiff
path: root/Pirate/tray.vbs
blob: 3ce1b30bbddf0f044106f8674a556ddae0dc0005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count -1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count -1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 2000
loop