Command for Infinite Looping

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheNoSoMan
    FFR Player
    • Feb 2009
    • 382

    #1

    Command for Infinite Looping

    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.

    Originally posted by someone's history teacher
    Watching porn is like reading recipe books without eating anything
    "Words of Wisdom"
  • UserNameGoesHere
    FFR Veteran
    • May 2008
    • 1114

    #2
    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 Crashfan3
    Man, what would we do without bored rednecks?

    Comment

    • Izzy
      Snek
      FFR Simfile Author
      • Jan 2003
      • 9195

      #3
      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

      • UserNameGoesHere
        FFR Veteran
        • May 2008
        • 1114

        #4
        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 Crashfan3
        Man, what would we do without bored rednecks?

        Comment

        • Zageron
          Zageron E. Tazaterra
          FFR Administrator
          • Apr 2007
          • 6592

          #5
          Re: Command for Infinite Looping

          Code:
          @echo off
          :whileTrue
          echo ...
          GOTO whileTrue

          Comment

          • TheNoSoMan
            FFR Player
            • Feb 2009
            • 382

            #6
            Re: Command for Infinite Looping

            Where did Tera's post go? It answered my question.

            Originally posted by Tera
            create a notepad file named example.bat
            the text inside the file should say start example.bat
            replace example with w.e, gg
            Originally posted by someone's history teacher
            Watching porn is like reading recipe books without eating anything
            "Words of Wisdom"

            Comment

            • fido123
              FFR Player
              • Sep 2005
              • 4245

              #7
              Re: Command for Infinite Looping

              I used to just do it like this

              Code:
              :x
              start
              goto x
              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-
              Last edited by fido123; 03-18-2012, 10:26 AM.

              Comment

              Working...