View Full Version : Command for Infinite Looping
03-15-2012, 03:56 PM
I'm just wondering but does anyone know the command to make an infinite loop like in this video? I'm thinking about it as a prank.
03-15-2012, 04:58 PM
I'm not on a Windows machine right now, but try the following and let me know if it does what you want. ;)
Make a batchfile and name it "loop.bat" (without the quote marks)
loop.bat should look like the following (without the BEGIN and END tags)
Edit: -- You can make the file in Notepad, but make sure to set the encoding to ANSI (should be the default) if it's not already (if you get that option at all), and make sure to save as "All Files" so it's really named "loop.bat" and not "loop.bat.txt" which wouldn't work. Also try disabling the "Hide known file extensions" thing in Windows Explorer to make sure.
Edit: -- Bonus points UNIX/Linux version -- would be "loop.sh" and would look something like (without the BEGIN and END tags)
xterm ./loop.sh &
Then run this command (without quotes) "chmod +x loop.sh"
Start it by running "./loop.sh"
Edit: -- This is most likely going to result in hanging up/freezing whatever computer you run this on, by running it out of resources at some point. It's highly likely you'll have to hard power down (Holding in the power button or raw pulling the plug) to turn off the computer which may result in data loss or (rarely) hard disk corruption or damage. Use it only in cases where such a thing is legal. You are responsible for your own actions, and I take no responsibility for any damage this may or may not cause. In other words if you get in trouble for it, it's your own fault and I take no blame.
This batch exploit is particularly annoying because if you don't fix it fast enough then your memory will get filled up and your virtual memory will get filled up and you can't even open task manager anymore because you don't have enough memory. I wonder if you could type into the last cmd prompt though. You could fix it from there.
03-15-2012, 05:50 PM
Yeah it will definitely eat up your resources as it's infinitely-respawning. There may be some clever way to stop/kill it but off the top of my head I can't think of any. If you click fast enough that could work but at some point you'd have to just hard power off the machine. most likely.
03-15-2012, 06:13 PM
03-16-2012, 03:13 PM
Where did Tera's post go? It answered my question.
create a notepad file named example.bat
the text inside the file should say start example.bat
replace example with w.e, gg
03-18-2012, 12:12 PM
I used to just do it like this
Also the name can be anything before .bat if it wasn't obvious before. I got banned once on FFR for tricking people into doing this. ****ing Sprite-
vBulletin® v3.8.1, Copyright ©2000-2013, Jelsoft Enterprises Ltd.