How to Create The Matrix Effect using a Batch File

I remember the first time I watched ‘The Matrix’ movie in 1999. It was an epic experience that blew my mind at that time. A lot of time has passed since then, but the Matrix effect is still something I remember quite vividly. And so, I decided to write this short guide to show you how to create a Matrix batch file.

I’ll also demonstrate how you can add a button in MS Access to trigger the Matrix effect upon a click!

Let’s now look at the steps that you can follow in order to create the Matrix batch file.

Steps to Create the Matrix Batch File

 

(1) To start, open Notepad:

 

Notepad

 

(2) Copy the following code into your Notepad:

 

@echo off
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%
 
PING 1.1.1.1 -hh -w 0.2>NUL
 
goto a

 

(3) Save your Notepad as a Batch file by adding the extension of “.bat” to your file name. Here, I chose to save the Notepad file as Matrix.bat:

 

Batch File

 

(4) Press ‘Save’ and you’ll now see the batch file on your computer:

 

Batch File

 

(5) Double-click on the Matrix batch file to start the Matrix effect:

 

Quick Guide to Create a Matrix Batch file - Data to Fish

 

The Matrix effect will now appear on your screen!

Batch files are fun to work with. You may want to check the following source for additional tutorials on Batch Scripts.

In the next section, I’m going to show you how to create a button in MS Access that will trigger the Matrix effect upon a click.

Running the Matrix Effect from your MS Access Application

(1) The first thing that you’ll need to do is to open MS Access and then create a new MS Access Form, where you will place your button.

In order to do that, go to the Create tab, and then press on the Form Design to create a new Form:

 

Create tab in MS Access

 

(2) Under the Design tab, press on the “button shape” and then place your button on the Form itself:

 

Place a button on an Access Form

 

(3) Press Cancel, as we will not be using the Command Button Wizard:

 

Command Button Wizard

 

(4) On the Property Sheet (located on the right-hand-side of your screen), select the “[Event Procedure]” associated with the On Click option under the Event tab. Then, press on the 3 dots (“…”)

 

Property Sheet - MS Access

 

(5) Use the following VBA code structure, which includes the Shell command to run the Matrix batch file when clicking the button:

 

Shell ("The path where your Matrix batch file is stored\File Name.bat")

 

In my case, I stored the Matrix batch file on my desktop, and therefore my VBA code would look as follows:

 

VBA to start a batch file

 

(6) Finally, save your work and then switch to the Form View, where you’ll be able to press the button to run the Matrix batch file from Access:

 

Form View