Matrix Print in Batch for Fun


Some complex tasks might not be so complicated. For example, to emulate the matrix printing like the following.

matrix2 Matrix Print in Batch for Fun batch script beginner GUI implementation programming languages simulation tricks windows windows command shell

All you need is just a few lines of code in windows batch, printing lines by lines of random numbers. Each line consists of a few random integers, which lead to different length. Save the following using notepad or whatever editor, and make sure it ends with *.cmd or *.bat file extension.

matrix Matrix Print in Batch for Fun batch script beginner GUI implementation programming languages simulation tricks windows windows command shell

Double click and you are good to go. The emulator will not stop until you press Ctrl + C or simply close it.

1
2
3
4
5
@echo off
color 02
:tricks
echo %random%%random%%random%%random%%random%%random%%random%%random%
goto tricks
@echo off
color 02
:tricks
echo %random%%random%%random%%random%%random%%random%%random%%random%
goto tricks

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
204 words
Last Post: Site Adsense Ads Adjustment
Next Post: Delphi COM object private attributes not accessible in multithreading

The Permanent URL is: Matrix Print in Batch for Fun

Leave a Reply