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.

Steps

  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

  • Question
    Will this harm my computer?
    Sasa Bozilovic
    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
    Maximus Bee
    Community Answer
    Yes, you can just press ctrl+c ,then text Y, then click enter. Or, you can just close the window.
Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 35,377 times.
42 votes - 58%
Co-authors: 8
Updated: August 6, 2022
Views: 35,377
Categories: Computer Pranks
Advertisement