Instructables
Picture of BATCH (.bat) Matrix  --original--
im gonna show you how to make a matrix effect with 1 and 0 in notepad
 
Remove these adsRemove these ads by Signing Up

Step 1: Open notepad

Picture of Open notepad
start
programs
accessories
notepad
Nice work! But, why did you type that much code? All you need is:
@echo off
:a
set a=%random% % 16384 + 1
echo %a%
goto a

But nice work anyway!
flintbone2 years ago
Why can't it be copied instead of typing the whole thing?
I'm lazy.
Country Boy 97 (author)  flintbone2 years ago
You can copy it, i meant dont say its yours ;)
with the pauses you can have ping localhost>nul and that has a time instead of the 'user' have to press any key just thought it would be a good command
Daschizznit2 years ago
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.

@echo off
echo you have a virus!!!
pause
cls
echo press any key to delete the infected file(s) automatically.
pause
cls
echo deleting files from c:\%userprofile%
echo 10%
echo 26%
echo 48%
echo 60%
echo 88%
echo 100%
echo files deleted.
pause
cls
color 47
echo WARNING MAJOR CRITICAL FILES MISSING
echo total system failure, attempting to initiate backup sequence %random%
pause
echo...
pause
echo backup failure, restarting hard drive process sequences.
pause
cls
color 17
echo warning, total system meltdown immenent, shut down computer now to avoid fire.
pause
cls
echo auto shutdown initiated
pause
shutdown -s -t 999
pause
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.
Country Boy 97 (author)  Io kieran oI2 years ago
i will use an if command asan example:

if %a% EQU %b% echo hello world!

this is saying: if variable "a" equals the variable "b" , input "hello world!" on the screen.
lets have a look at the "EQU". this means equal. there are many different "switches" like these that you can replace it by:
GTR--Greater than
LSS--Lesser than
GEQ--greater or equal to
LEQ--lesser or equal to
NEQ--not equal to
EQU--equal to

now for the %b%
instead of a variable after the switch, you can input a number. for example: if %a% EQU 22615 echo hello world!
and after all that, you choose the command that is going to happen if
%a% equals %b% (first eample) in this case, "echo hello world!"

hope this helped
K thanks
thegeeke2 years ago
Your side note is incorrect... it does have to be saved as all files.
Country Boy 97 (author)  thegeeke2 years ago
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.
Country Boy 97 (author)  thegeeke2 years ago
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.