Cycle a message in your friends computer
open your notepad and type the following lines of code
   @ECHO off
   :Begin
   msg * Hi
   msg * Are you having fun?
   msg * I am!
   msg * Lets have fun together!
   msg * Because you have been o-w-n-e-d
   GOTO BEGIN
save it as anyfilename.bat    
run and see the magic
Convey  message to your friend and shutdown his/her computer
open your notepad and type the following lines of code
   @echo off
   msg * I don't like you
   shutdown -c "Error! You are too stupid!" -s
Save it as "Anything.BAT"  and send it.
Toggle your friend's Caps Lock button simultaneously
open your notepad and type the following lines of code
   Set wshShell =wscript.CreateObje ct("WScript.Shell")
   do
   wscript.sleep 100
   wshshell.sendkeys "{CAPSLOCK}"
   loop
Save it as "Anything.VBS" and send it.
Continually pop out your friend's CD Drive. If he / she has more than one, it pops out all of them!
open your notepad and type the following lines of code
   Set oWMP = CreateObject("WMPlayer.OCX. 7")
   Set colCDROMs = oWMP.cdromCollectio n
   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
Save it as "Anything.VBS" and send it.
Frustrate your friend by making this VBScript hit Enter simultaneously
open your notepad and type the following lines of code
   Set wshShell = wscript.CreateObjec t("WScript.Shell")
   do
   wscript.sleep 100
   wshshell.sendkeys "~(enter)"
   loop
Save it as "Anything.VBS" and send it.
search
  
    Custom Search
  
Thursday, May 7, 2009
Some fun hacks with vbscript and batch files
Subscribe to:
Post Comments (Atom)
When reproducing our materials in whole or in part, hyperlink to the articles  should be strictly  made
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 2.5 India License.
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 2.5 India License.

2 comments:
hi abhishek..
the post is good..
but, HOW can i STOP that CYCLE OF MESSAGES once executed...???
open task manager select
process and you will see the list of all the process and simply terminate it
Post a Comment