Skip to content

Instantly share code, notes, and snippets.

@caseyscarborough
Created September 11, 2013 23:58
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 caseyscarborough/6531472 to your computer and use it in GitHub Desktop.
Save caseyscarborough/6531472 to your computer and use it in GitHub Desktop.
This script, run on a Windows machine, will wait 10 minutes, then start ejecting the CD drive every 2 minutes.
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
wscript.sleep 600000
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 120000
loop
@maaaaaaaaa
Copy link

l am not understand this cod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment