Short answer: you can make a harmless joke script in Notepad that keeps popping open the CD/DVD drive, great for a laugh on a friend's PC that has an optical drive. It is a few lines of VBScript, changes nothing, and stops the moment you close it. Here is the code, how it works, how to stop it, and the safety line you must not cross. A note before you prank anyone This is only funny on a computer you have permission to use, and only harmless because it changes nothing. Do not run scripts on someone's work machine or anywhere it could cause real trouble. A prank that annoys a friend for ten seconds is fine; one that disrupts someone's work is not. The CD-eject prank code Open Notepad . Paste this: 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 End If wscript.sleep 5000 loop Save it as prank.vbs (choose ...
Discover the latest computer tips and hacks for optimizing your digital experience. Check out my new website : https://fineanmol.github.io/