Batch File Matrix + Explanation
by I_boom5245 in Circuits > Computers
953 Views, 2 Favorites, 0 Comments
Batch File Matrix + Explanation
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.
- First, what you want to do is to copy the code
- Then paste it in notepad
- Click file then save as
- Name it: Matrix.bat
- Click where it says Text documents and change it to All Files
- Click Save
- 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:
cls just tells the computer to clear the screen.
echo:
echo is a way of saying something. Example:
@echo off
cls
echo Hi
pause
That would say "hi"
pause:
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%:
%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:
goto means to go to a part of the code Example:
@echo off
cls
:label
echo Hi
goto label
In this example, the word hi would be repeated.