Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Food Living Outside Play Technology Workshop

BATCH (.bat) Matrix --original--


by Country Boy 97 on April 10, 2012

Table of Contents

BATCH (.bat) Matrix --original-- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: BATCH (.bat) Matrix --original-- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Open notepad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 3: Save as a .bat file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 4: Open it . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

http://www.instructables.com/id/BATCH-bat-Matrix-original-/
Intro: BATCH (.bat) Matrix --original--
im gonna show you how to make a matrix effect with 1 and 0 in notepad

Step 1: Open notepad


start
programs
accessories
notepad

Step 2: Code
type:

@echo off
color 0a
cls
:a
set /a a=%random%
if %a% geq 16384 set /a aa=1
if %a% lss 16384 set /a aa=0
set /a b=%random%
if %b% geq 16384 set /a bb=1
if %b% lss 16384 set /a bb=0
set /a c=%random%
if %c% geq 16384 set /a cc=1
if %c% lss 16384 set /a cc=0
set /a d=%random%
if %d% geq 16384 set /a dd=1
if %d% lss 16384 set /a dd=0
set /a e=%random%

http://www.instructables.com/id/BATCH-bat-Matrix-original-/
if %e% geq 16384 set /a ee=1
if %e% lss 16384 set /a ee=0
set /a f=%random%
if %f% geq 16384 set /a ff=1
if %f% lss 16384 set /a ff=0
set /a g=%random%
if %g% geq 16384 set /a gg=1
if %g% lss 16384 set /a gg=0
set /a h=%random%
if %h% geq 16384 set /a hh=1
if %h% lss 16384 set /a hh=0
set /a i=%random%
if %i% geq 16384 set /a ii=1
if %i% lss 16384 set /a ii=0
set /a j=%random%
if %j% geq 16384 set /a jj=1
if %j% lss 16384 set /a jj=0
set /a k=%random%
if %k% geq 16384 set /a kk=1
if %k% lss 16384 set /a kk=0
set /a l=%random%
if %l% geq 16384 set /a ll=1
if %l% lss 16384 set /a ll=0
set /a m=%random%
if %m% geq 16384 set /a mm=1
if %m% lss 16384 set /a mm=0
set /a n=%random%
if %n% geq 16384 set /a nn=1
if %n% lss 16384 set /a nn=0
set /a o=%random%
if %o% geq 16384 set /a oo=1
if %o% lss 16384 set /a oo=0
set /a p=%random%
if %p% geq 16384 set /a pp=1
if %p% lss 16384 set /a pp=0
set /a q=%random%
if %q% geq 16384 set /a qq=1
if %q% lss 16384 set /a qq=0
set /a r=%random%
if %r% geq 16384 set /a rr=1
if %r% lss 16384 set /a rr=0
set /a s=%random%
if %s% geq 16384 set /a ss=1
if %s% lss 16384 set /a ss=0
set /a t=%random%
if %t% geq 16384 set /a tt=1
if %t% lss 16384 set /a tt=0
set /a u=%random%
if %u% geq 16384 set /a uu=1
if %u% lss 16384 set /a uu=0
set /a v=%random%
if %v% geq 16384 set /a vv=1
if %v% lss 16384 set /a vv=0
set /a w=%random%
if %w% geq 16384 set /a ww=1
if %w% lss 16384 set /a ww=0
set /a x=%random%
if %x% geq 16384 set /a xx=1
if %x% lss 16384 set /a xx=0
set /a y=%random%
if %y% geq 16384 set /a yy=1
if %y% lss 16384 set /a yy=0
set /a z=%random%
if %z% geq 16384 set /a zz=1
if %z% lss 16384 set /a zz=0
echo %aa% %bb% %cc% %dd% %ee% %ff% %gg% %hh% %ii% %jj% %kk% %ll% %mm% %nn% %oo% %pp% %qq% %rr% %ss% %tt% %uu% %vv% %ww%
%xx% %yy% %zz%
goto a

all original by the way, no copying!

http://www.instructables.com/id/BATCH-bat-Matrix-original-/
Step 3: Save as a .bat file
file
save as

*as a side note, IT DOSE NOT HAVE TO BE SAVED AS "ALL FILES"

save as: "anything".bat

*the .bat is important

Step 4: Open it
after you saved it, open it!

http://www.instructables.com/id/BATCH-bat-Matrix-original-/
Related Instructables

How To Make A How To Make A


Simple batch Matrix Batch Matrix Batch
Programming by File by File( THIS IS 9*9 LED matrix Make a Matrix
Io kieran oI MatrixEagle15 THE OLDER with Arduino by Screen with
VERSION OF Pseudo- batch
zmolroc
THIS Random CJPcreator by
INSTRUCABLE!!! number sly787
CHECK MY generator by
PAGE FOR THE Techno Dancer
NEWER ONE!!!)
by MatrixEagle15

Comments
4 comments Add Comment

thegeeke says: Apr 10, 2012. 5:26 PM REPLY


Your side note is incorrect... it does have to be saved as all files.

Country Boy 97 says: Apr 10, 2012. 6:42 PM REPLY


What OS do you have? It works with Win xp sp2 and Win vista home, for sure

thegeeke says: Apr 10, 2012. 6:52 PM REPLY


OK, I just tested it out, and you are correct. I'm sorry. When I started in batch programming, it would not detect that it didn't need to add the .txt
extension at the end unless you changed it to save as all files. I never tried it on the newer systems... it was just so engrained in my brain. Again, I'm
sorry, and if you want me to remove my comment, I will be happy to.

Country Boy 97 says: Apr 10, 2012. 7:07 PM REPLY


Leave your comment, its ok. itl answer other questions ;)

http://www.instructables.com/id/BATCH-bat-Matrix-original-/

You might also like