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.
@echo off color 02 :start 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.
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.