X
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.
Learn more...
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
-
1Open 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.
-
2Write @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 -
3Go 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.
-
4Insert 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.
-
5Add the next line of code under the last one. The line of code is mode 1000, which will turn the command to fullscreen.
-
6Break 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.
-
7Insert
echo %random%%random%%random%%random%...
directly below the last line of code. This will produce the string of random numbers. -
8Finish with goto a. This is the repeat command.
-
9Save your code. Instead of '.txt' it will be '.bat'.
Advertisement
Community Q&A
-
QuestionWill this harm my computer?Sasa BozilovicCommunity AnswerIt will not, but it will slow down your computer if it is old or has a slow processor.
-
QuestionCan you turn it off?Maximus BeeCommunity AnswerYes, you can just press ctrl+c ,then text Y, then click enter. Or, you can just close the window.
Advertisement
About This Article
Advertisement