Basics Of .bat file Pranks

Posted on 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.alt="command prompt" width="389" height="251" />

  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. Harmless

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

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")
WshShell.Run "notepad"
WScript.Sleep 100
WshShell.AppActivate "notepad"

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

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


People who liked this Post also read

  • Increase Computer Speed By Running Windows XP In RAM
    This one is the best tweak for windows XP I ever found, and it works very well. With this tweak we will force windows to load kernel and drivers in memory....
  • 6 Absolutely Free Tools To Tweak Windows
    If you're working on the Windows 7 RC, then there are good chances that you're the kind of user who really likes to monkey around with settings and change your OS. While what you can do is that you may go to the DIY route and hack your registry and then r...
  • 10 Systems For Your Server Room: Part-2
    Last year, voting was held for the Third Annual ServerWatch Product Excellence Awards. That was a reader-driven program which held for two years. The results were as expected. While in few cases history repeated and patterns remained the same, in rest, n...
  • Faster Browsing on Internet Explorer Download ie7pro
    Good news for Internet Explorer users. There is a cool add-on available for free which includes a lot of features and tweaks to make your IE friendlier, more useful, secure and customizable....
  • List of Free Operating Systems: Download Now!
    There are an increasing number of equipment manufacturers and technology groups that provide operating systems (OS) for free personal and commercial use without any cost or fee. You are sometimes even free to use them, change their source code and redistr...

18 Responses to “Basics Of .bat file Pranks”

  1. Anders says:

    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

  2. Anders says:

    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

  3. Anders says:

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

  4. jack says:

    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

  5. R. MAK. says:

    @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?

  6. scott says:

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

  7. scott says:

    email me at !!:)

  8. gtamike says:

    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
    if colCDROMs.Count >= 1 then
    For i = 0 to colCDROMs.Count – 1
    For i = 0 to colCDROMs.Count – 1
    End If
    wscript.sleep 5000

  9. gtamike says:

    Kill wscript.exe in taskmanger to stop script

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

  10. Fighterlegend says:

    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 “~()”

  11. jDog says:

    If you want to stop your computer from shuting down (if you have time) you can do “shutdown -a” in run…

    other commands for it are:
    -s shutdown
    -l log off
    -t (time delay)
    -r restart
    -a (abort)

    Just put any of these after the word shutdown on your bat file and it will activate when reached.

  12. rawr says:

    okay, heres the deal, for you beginners, open up command promt, type in “shutdown /?”. it will show you all of the possible commands that cand be used.
    Such as:
    –whats in quotes is for reference–
    Shutdown -s -t 60 -c HAHA
    -s (shutdown) -t “xx” (replace xx with time in seconds) -c “comment” (place comment while computer shuts down)

    Make this code or copy it to notepad, save it as filename.bat
    save it where-ever.

    For the most fun..
    save the file to the desktop, with your own modifications, and name it “internet.bat” delete all the internets, and right click internet.bat
    change the file icon to look like the normal internet explorer. then drag and copy it to the start menu, task bar, etc. so everytime they open the internet it shuts their computer down.

    Or do the following.. :
    open notepad- type:
    Start notepad
    start cmd
    start mspaint
    start winmine
    start sol
    start internet.bat

    Then- save as internet.bat and when it opens, if will keep opening the following, then open itself again.. fun fun fun. =) and this is only the easy stuff. enjoy.

  13. theEGG says:

    awesome tricks . . . ü

  14. kyle says:

    how do i make a bat file open when i open a nother file

  15. mark says:

    hi i was wondering when i was young. there was a program that acted as if there was a ghost in it, it made the screen writ msgs then made cd come out then go back in does any one know where i can find it, it was awesome

  16. lvl80mage says:

    yo, these bat file are mad, although some dont work on xp sp2, anyone else have the same problem?

  17. Htun Lin Oo says:

    I think
    shutdown -s -t 0 -c”shut down ”
    is real shutdown code

  18. sacki says:

    Hi i did the prank when i open the notepad thing. Its was fun at the begining but know i cant make it stop. I restarted the computer but it didn´t stop help me!


July 2008
    Aug »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31