Download Article
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.
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
Search
-
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.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Tips
- You can experiment with different variations to find your preferred settings.Thanks
- 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'.Thanks
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.
Advertisement