A "Matrix" style batch file generates an endless shower of random numbers, similar to the green code that flows in the famous movie saga. If you want to learn how to make one, read this article.
Steps
Step 1. Open Notepad
This program is pre-installed on almost all PCs. If you don't know where to find it, do a search. On Windows 10, the search button is next to the Windows one and has a magnifying glass icon.
Step 2. Type @echo off as the first line of the code
This command takes its meaning from DOS. In DOS versions 3.3 and later, @ hides the echo of a batch command. All results generated by a command are displayed. Without that character, you can turn off command echo using the echo off code, but that same command would appear before activating
Step 3. Go to the next line, Pause
It only serves to slightly slow down the execution of the next part of the program.
Step 4. Enter the next line of code directly below the last one
This time, the command is color 0a, which sets the background to black and the text to green. It is a simple decoration.
Step 5. Add the next line of code below the previous one
Write mode 1000, in order to run the program in full screen.
Step 6. Skip a line
The next line of code is: a and is for ensuring program execution. In other words, it holds up all the rest of the code.
Step 7. Write
echo% random %% random %% random %% random%.
.. directly below the last line of code. This is the command that produces the string of random numbers.
Step 8. Finish with goto a
This is the code for repeating the program.
Step 9. Save the code
Change the extension from ".txt" to ".bat".
Advice
- You can experiment with many variations to create the program of your choice.
- You can open Command Prompt and type color [attr], then you can change the colors of your program as you like. For example "color fc".