Batch Matrix Effect

30,209

39

7

Posted in TechnologyComputers

Introduction: Batch Matrix Effect

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.

Share

    Recommendations

    • Casting Contest

      Casting Contest
    • Make it Move Contest

      Make it Move Contest
    • Microcontroller Contest

      Microcontroller Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    7 Comments

    @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

    this code is fake because

    %%random%%random%%random%%random%%random%

    instead of

    %random% %random% %random% %random% %random%

    notice the space between % %

    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.
    I inserted a line to slow it down just a bit.
    ping -n 1 127.0.0.1 >nul
    added just before the goto A