• Want to Annoy a Colleague

    From Khelair@DIGDIST/BATTLEST/FREEWAY to All on Saturday, October 18, 2014 14:16:00
    Next time they leave their 'doze computer running for a bit, load up notepad and enter the following:

    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

    Save as Whatever.vbs (Whatever can literally be whatever you like), and change the file type to 'All files' when saving. Double click the file to run it, or for a bunch of fun, add it to the StartUp folder to have it automatically run at each startup.

    It'll wait ten minutes, then open all CD/DVD trays every two minutes after, endlessly. ;) May be a real good way to have a colleague lose their mind for your amusement.

    From the heading down to the above paragraph has been reposted from iraffiruse on tumblr. My small addition at this point is that I'm not sure why there are two 'for/next' loops in there that seem to do the exact same thing; that may be a bug. I haven't worked with VBScript in a long time, and I don't have a Windows machine to test it on right now, so I can't tell for sure. Maybe it opens and then closes the tray...

    ---
    þ Synchronet þ Tinfoil Tetrahedron BBS telnet or ssh -p 2222 to tinfoil.synchro.net