Instructables

Batch file animations

im going to show you how to make an animation
in batch.

what you need:
1.a computer
2.know how to save batch files
3.time lots of time
4.(optional) half-a-brain


DISCLAIMER:
i am not responsible for any damage that happens to your
computer because you pissed around with batch files
and had no idea what you were doing!

Wooh
now thats out of the way lets start.....>>> (this way)
 
Remove these adsRemove these ads by Signing Up

Step 1: THE CODE

the attached file is a simple
animation i made show WTF is all
this maddness

ECHO
a command used to echo the
input

@ECHO OFF
sets it so the command is
not shown

SLEEP xxx
pauses the script for
a set amount of seconds (xxx)

echo 1. start
echo 2. exit
SET /P M=Type 1 or 2 then press ENTER:
IF %M%==1 GOTO start
IF %M%==2 GOTO exit

simple menu

GOTO xxx
goes to the specified label (xxx)

:xxx
sets a label (xxx)

cls
clears the screen

ok this is probably hurting your bran so i will move on....

Step 2: The save

type your commands into
notepad and shange the
save as type to all files
and save with this exstention
<:put name="" here="">.bat
.cmd
are more powerful files tho.

FrozenSky8 months ago
@echo off
:start
start cmd.exe
goto start

this one is fun!
itanium3 years ago
well... i don't have the program "sleep" on my computer. it doesn't work as the anims play real quick.
Use ping localhost -n 1 >nul Instead of sleep
eoscondor (author)  itanium3 years ago
what is your OS?

(i have win7 i hate it)
eoscondor (author)  eoscondor3 years ago
try

ping localhost -n 5 >nul

the more you add it to the code the longer it takes
nice solution! im on vista. its kinda using a bazooka to kill a mosquito approach but very good!
eoscondor (author)  itanium3 years ago
i did that once with a spud gun!
anyhoo

have you made an animation?
I think I did this some time ago. I used to make the animation play by pressing space (I used the program pause piped with null on DOS command line... never thought of using a timer [back then I couldnt, didn't even have internet]). So when I pressed space, the anim batch file would play another frame.

It was pretty fun the time I made it but no one around cared bout that. Computers were merely tools.
blakexz132 years ago
ur program took a little to long. (also sleep isnt on some computers)
HERE IS AUGMENTED CODE:
@echo off
title the life of stick man bob
color 0F
cls
echo THE LIFE OF STICK MAN BOB
echo.
echo IN SLOW MOTION
echo.
echo OOOOOO
echo O O
echo O # # O
echo O ---- O
echo OOOOOO
echo ][
echo _[]_
echo //][\\
echo // [] \\
echo // ][ \\
echo // [] \\
echo //\\
echo // \\
echo // \\
echo // \\
echo.
echo 1. start
echo 2. exit
SET /P M=Type 1 or 2 then press ENTER:
IF %M%==1 GOTO start
IF %M%==2 GOTO exit
:start
cls
echo ----------------
echo . 0 .
echo . /l\ .
echo . l .
echo . - .
echo . / \ .
echo ----------------
ping locahost -n 1 >nul
cls
echo ----------------
echo . 0 .
echo .@ /l\ .
echo . l .
echo . - .
echo . / \ .
echo ----------------
ping locahost -n 1 >nul
cls
echo ----------------
echo . 0 .
echo . /l\ .
echo . @ l .
echo . - .
echo . / \ .
echo ----------------
ping locahost -n 1 >nul
cls
echo ----------------
echo . 0 .
echo . /l\ .
echo . l .
echo . @ - .
echo . / \ .
echo ----------------
ping locahost -n 1 >nul
cls
echo ----------------
echo . 0 .
echo . /l\ .
echo . l .
echo . - .
echo . @ / \ .
echo ----------------
ping locahost -n 1 >nul
cls
echo ----------------
echo . 0 .
echo . /l\ .
echo . l .
echo . - .
echo . @ / \ .
echo ----------------
ping locahost -n 1 >nul
cls
echo ----------------
echo . 0 .
echo . /l\ .
echo . l .
echo . #*# - .
echo . *@*/ \ .
echo ----------------
ping locahost -n 1 >nul
cls
echo ----------------
echo . 0 .
echo . /l\ .
echo . !!!!!l .
echo . !!!!!- .
echo . !!@!! \ .
echo ----------------
ping locahost -n 1 >nul
cls
echo ----------------
echo . 0 .
echo . / \ .
echo . l .
echo . .
echo . \ .
echo ----------------
ping locahost -n 1 >nul
cls
echo ----------------
echo . .
echo . 0 .
echo . / \ .
echo . l .
echo . \ .
echo ----------------
ping locahost -n 1 >nul
cls
echo ----------------
echo . .
echo . .
echo . .
echo . 0 .
echo . / l\\ .
echo ----------------
ping locahost -n 1 >nul
cls
echo THE END OF BOB!
echo or is it?
echo.
echo 1. restart
echo 2. exit
SET /P M=Type 1 or 2 then press ENTER:
IF %M%==1 GOTO start
IF %M%==2 GOTO exit
:exit
echo exiting......
sleep 2
echo 1
sleep 1
echo 2
sleep 2
echo 3
sleep 1
exit
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!