Virus are nothing other than some lines of code which are properly written, saved and executed.
Today we are going to show you a great notepad prank regarding the Optical drive of our computer. This is to open and close the PC's CD drive continuously. This code is written in VBScript


Steps to be followed to execute the process are:

Step 1: Open Notepad from Start.

Step 2: Paste the below written code as it is 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
EndIf
wscript.sleep 5000
loop

Step 3: Save the text with an extension of .vbs file, as shown in below:




Step 4: Then you have to execute it by double clicking over the shortcut

Step 5: When you open the VBS file, your optical drive would start to come out and go back in again.

How to stop this?
To stop this follow the two simple steps:

Step 1: Call the Task Manager (Ctrl+Shift+Esc)

Step 2: From there delete the process named wscript.exe. The process will end.

So that's it! Just give the VBS file to your friend and annoy them. You can also include a script to make it start up at windows login to make it more effective.


0 comments:

Post a Comment

 
Top