Introduction: Batch File Matrix + Explanation

About: I like to computer program. I like soccer.

Here is the code:

@echo off
:loop color 0a echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random% goto loop

It is a very simple code, but is a very cool neat trick.

  1. First, what you want to do is to copy the code
  2. Then paste it in notepad
  3. Click file then save as
  4. Name it: Matrix.bat
  5. Click where it says Text documents and change it to All Files
  6. Click Save
  7. Then open the file

Codes and their meanings:

@echo off :

@echo off just tells the computer to not show every thing that it would normally show in the file. You usually use it at the beginning of a batch file. (but not always)


cls just tells the computer to clear the screen.


echo is a way of saying something. Example:

@echo off


echo Hi


That would say "hi"


pause is not actually in the command for the matrix code, but since i used it in the example above, I should explain it. pause just stops the computer until the user tells it to go again.


%random% just echos a random 5 digit number

:(anything of your choice):

The : command labels a part of your code. the goto command (below) goes along well with this command


goto means to go to a part of the code Example:

@echo off



echo Hi

goto label

In this example, the word hi would be repeated.