How To Create Falling Matrix Code Effect In Command Prompt

Follow by Email

Whenever I see a matrix movie I wonder how do the operator see objects through that ‘ Green random code ‘. While I don’t think I can figure it out any time soon, I know how to create a similar screen with green random numbers falling. Today I will show you how you can do something like that and act like an Operator in front of your friends.

 How To Create Falling Matrix Code Effect In Command Prompt

Step 1 : First open Notepad.

Step 2 : Copy the code below and paste it in your notepad editor.

matrix falling code effect-2


@echo off
 color 02
 echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%.
 goto start

Step 3 : Click on ” File “and then select  “Save As “option. Now save your file with a ” .bat ” extension i.e like ” Matrix.bat “.

Step 4 : Now simply close the file and go to the location where you saved the file.

Step 5 : Run the file you saved as an administrator.

That’s it ! Now, you will see random green code being generated on the screen.

How to stop the code run?

Just press ctrl +C while the program is running. This stops the program and asks you if you want to quit the program. Press Y to exit.

What is happening ?

Here we saved the file with a ” .bat ” extension which stands for ” batch ” file .When a batch file is run, the shell program which is usually COMMAND.COM or cmd.exe reads the file and executes its commands line-by-line.

Here in the code we are just printing random numbers which are generated by the line %random which generates random numbers. By using a lot of random variables we are generating the scrolling effect. If your screen doesn’t get filled with code horizontally, just paste more of those  %random variables in the code.

The line color 02 tells the computer to select green color. As from RGB Where if you want Red color change code to 04, if you want blue color change it to 01.

Hope you find this useful. Comment your opinions below.

Follow by Email


  1. dadomk 2016-06-20 Reply
  2. Petecaba Cabangaje 2016-06-20 Reply
  3. V 2016-06-21 Reply
  4. Shivam Jaiswal 2017-05-27 Reply
  5. Anderson Kleber 2017-08-20 Reply
  6. Chan Nyein Thu 2017-11-13 Reply
  7. Rancho 2018-04-21 Reply

Add a Comment

Your email address will not be published. Required fields are marked *

Like the article? please consider sharing it. Thank you

Advertisment ad adsense adlogger