loading
To do this instructable you need a basic knowledge of batch. If you don't you make find this difficult so I'll try and make it simple.
By the end of this you should be left with a matrix effect batch file. 

Step 1: Easy Version- the Bare Minimum

This is the core of the matrix script we are writing. This is just the bare minimum and other addons can be added to make it more interesting. 
Copy the following code into a notepad file:

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

save this as a .bat file.
Now click on the .bat file you just saved. You should have a basic matrix effect.

Step 2: Intermediate- Refined Copy

This is a more refined and sophisticated of the code in the previous step. It includes a title and requires a key to be pressed to activate.
Copy into notepad:
@echo off
title Matrix Effect by Draja
echo Enter the Matrix
pause
color 0a
mode 1000

:A
echo %random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random
%%random%%random%%random%%random%%random%
goto A

As before save as a .bat file

Step 3: Enjoy and Post Feedback

I look forward to your feedback and any addittions you have made or would like to see.
<p>@echo off<br> title Matrix Effect by Draja<br> echo Enter the Matrix<br> pause<br> color 0a<br> mode 1000<br> <br> :A<br> echo %random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> %random%%random%%random%%random%%random%%random<br> %%random%%random%%random%%random%%random%<br> goto A</p><p>this code is fake because</p><p>%%random%%random%%random%%random%%random%</p><p>instead of</p><p>%random% %random% %random% %random% %random%</p><p>notice the space between % %</p>
A much MUCH more effective way of doing this is:<br> <br> <em><strong>@echo off<br> color 0a<br> setlocal enabledelayedexpansion<br> for /l %%a in (0,0,1) do (&lt;nul set /p=&quot;!random!&quot;)<br> ::This will go forever, until user inputs &quot;Ctrl+C&quot; or closes the window</strong></em><br> <br> It would much faster, and would fill the entire line for everyline. I also recommend you look into writing up different colours in CMD on this link <a href="http://stackoverflow.com/questions/4339649/how-to-have-multiple-colors-in-a-batch-file" rel="nofollow">http://stackoverflow.com/questions/4339649/how-to-have-multiple-colors-in-a-batch-file</a>
Use the MODE command to adjust the screen size. like using the MODE 1000 darja used in the original, fills the screen nicely.
Yea, he uses it in the third example. But the problem with that is it may be too big for some screens, What would be better is starting it at maw window, guaranteeing it will fit on the screen
Batch files, they can do many things. <br>I inserted a line to slow it down just a bit. <br>ping -n 1 127.0.0.1 &gt;nul <br>added just before the goto A <br> <br>

About This Instructable

25,456views

39favorites

License:

More by draja:Batch Matrix Effect 
Add instructable to: