PDF download Download Article PDF download Download Article

A 'Matrix' batch file is a file that generates an infinite display of random numbers. It's evocative of the "falling code" in the Matrix movies. If you want to program one, this wikiHow will teach you how.

  1. 1
    Open your 'Notepad'. Most PCs will have it pre-installed. If you're not sure where to find it, search for it. For Windows 10, the 'Windows search' button is right next to the 'Windows' button, and it looks like a magnifying glass.
  2. 2
    Write @echo off for the first line of code.
    • The '@echo off' command inherits the meaning from DOS. In DOS version 3.3 and later, @ hides the echo of a batch command. Any output generated by the command is echoed. Without it, you could turn off command echoing using the echo off command, but that command would be echoed first.
    Advertisement
  3. 3
    Go to the next line. Here, the line of code is Pause . It will slightly delay the next part of the code, but doesn't do anything else.
  4. 4
    Insert the next line of code directly under the last line. This time, the code will be color 0a . This will turn the background black and the text green. This is just a decorative device.
  5. 5
    Add the next line of code under the last one. The line of code is mode 1000 , which will turn the command to fullscreen.
  6. 6
    Break off one line. The line of code this time will be :a . This will ensure that the code will run. In other words, it holds the entire code together.
  7. 7
    Insert echo %random%%random%%random%%random%... directly below the last line of code. This will produce the string of random numbers.
  8. 8
    Finish with goto a . This is the repeat command.
  9. 9
    Save your code. Instead of '.txt' it will be '.bat'.
  10. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Will this harm my computer?
    Sasa Bozilovic
    Community Answer
    It will not, but it will slow down your computer if it is old or has a slow processor.
  • Question
    Can you turn it off?
    Maximus Bee
    Community Answer
    Yes, you can just press ctrl+c ,then text Y, then click enter. Or, you can just close the window.
Ask a Question
      Advertisement

      Tips

      • You can experiment with different variations to find your preferred settings.
      • You can enter Command Prompt and type color [attr] . You can then change the color code in your program to whatever color you like. For example, 'color fc'.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 50,575 times.

      Did this article help you?

      Advertisement