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.
Command for Infinite Looping
Collapse
X
-
Command for Infinite Looping
"Words of Wisdom"Originally posted by someone's history teacherWatching porn is like reading recipe books without eating anythingTags: None -
Re: Command for Infinite Looping
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)
BEGIN
@echo off
cmd
loop
END
Enjoy ;)
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)
BEGIN
#!/usr/bin/sh
xterm ./loop.sh &
END
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.Last edited by UserNameGoesHere; 03-15-2012, 03:41 PM.Originally posted by Crashfan3Man, what would we do without bored rednecks? -
Re: Command for Infinite Looping
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.Comment
-
Re: Command for Infinite Looping
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.Originally posted by Crashfan3Man, what would we do without bored rednecks?Comment
-
Re: Command for Infinite Looping
Code:@echo off :whileTrue echo ... GOTO whileTrue
Comment
-
Re: Command for Infinite Looping
Where did Tera's post go? It answered my question.
Originally posted by Teracreate a notepad file named example.bat
the text inside the file should say start example.bat
replace example with w.e, gg"Words of Wisdom"Originally posted by someone's history teacherWatching porn is like reading recipe books without eating anythingComment
-

Comment