Programming languages such as BASIC, CPP, Python, etc can be used to program several pranks and sent to others' computer(s) for fun! This article will show you how to write a simple prank that'd constantly open and close the optical drive (DVD or Blu-ray drive) of a computer where the program would be executed, forever unless it is terminated (Termination steps are mentioned in the article). Read on if you want to freak your friend out for a while...
Ad
Steps
- 1Open the notepad on your Microsoft Windows computer. The program to be executed is a simple BASIC program that'd be written on the notepad.Ad
- 2Copy and paste the following set of instructions on the notepad:
- 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 5000
- loop
- 3Click on "File" on your notepad and "Save As..."
- 4On the File name, type any name you want followed by the .vbs extension, so it should look like Name.vbs (Name can include anything you want). Make sure you give it an attractive name, otherwise if you're playing the prank on someone would know if you name it "CD player prank" or something like that. Name it like "Disk cleaner.vbs" or Internet explorer or something attractive like it...
- 5Click on "All types". Below the File Name, there's another option which let's you select the file type, click on the arrow and a drop down list comes up. Click there.
- 6Save the file on any folder you want.
- 7You can transfer the file to any computer online or any removable media like a pen drive. Transfer the file to your friend's computer somehow and make sure he runs it.
- 8This would constantly open and close the CD drive of the computer which would frustrate him or her and he or she would have to restart the computer to terminate the program.
- 9A much easier way to terminate the program is by opening the task manager, and under the "processes" tab there's a wscript.exe running. Highlight it and click on "End process" to terminate it.
Post a Comment