Monday 10 February 2014

Optical Drive Constantly Open and Close Prank !

There are various Programming languages such as Basic, C++, Python, etc can be used to program several pranks and sent to others’ computer’s for fun! Today with the help of vbs script i will show you how to write a simple prank that will constantly open and close the optical drive of a computer when the program would be executed.Following is a complete instruction…

Step By Step Instruction:-
1. Open the notepad on your Windows computer.
2. Copy the following code and paste onto 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. Now save the file as SorabAggarwal.vbs and save it into to the hard disk drive wherever you want to save !
4. Now the saved file will be appear and whenever you will run this file it will open and close the optical drive constantly.
5. You can transfer the file to any computer online or any removable media like a pen drive.

Note:- Must Share If You Liked This Article!

No comments:

Post a Comment

Here’s the Reason Why ATM Pin has Only 4 Digit’s

We may come across major things in our day to day life. Most of the times we fail to notice the strange thing in it.  ATM machines  are no...