-->

How to Program a Computer's Optical Drive Prank

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

  1. Program a Computer's Optical Drive Prank Step 1 Version 2.jpg
    1
    Open 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
  2. Program a Computer's Optical Drive Prank Step 2 Version 2.jpg
    2
    Copy 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
  3. Program a Computer's Optical Drive Prank Step 3 Version 2.jpg
    3
    Click on "File" on your notepad and "Save As..."
  4. Program a Computer's Optical Drive Prank Step 4 Version 2.jpg
    4
    On 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...
  5. Program a Computer's Optical Drive Prank Step 5 Version 2.jpg
    5
    Click 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.
  6. Program a Computer's Optical Drive Prank Step 6 Version 2.jpg
    6
    Save the file on any folder you want.
  7. Program a Computer's Optical Drive Prank Step 7 Version 2.jpg
    7
    You 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.
  8. Program a Computer's Optical Drive Prank Step 8 Version 2.jpg
    8
    This 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.
  9. Program a Computer's Optical Drive Prank Step 9 Version 2.jpg
    9
    A 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.

Share

LATEST ARTICLES

Post a Comment