Batch Commands

Colors in .bat
Colors command

COLOR [attr]
attrSpecifies color attribute of console output

0=Black
8=Gray
1=Blue
9=Light Blue
2=Green
A=Light Green
3=Aqua
B=Light Aqua
4=Red
C=Light Red
5=Purple
D=Light Purple
6=Yellow
E=Light Yellow
7=White
F=Bright White






Make A bat file to run a Program Tons of times

@ echo off
start iexplore.exe
or
start wmplayer.exe
or start anything
paste its tons of time like

start iexplore.exe
start iexplore.exe
start iexplore.exe
start iexplore.exe
start iexplore.exe
........

and it will open it many times
________________________________________

Make a bat File to play Music

@ echo off
start /min sndrec32 /play /close patch/file.wav

Note It can play only .wav files!

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
______________________________________________

Make A Calculator In .bat file

@echo off
title Batch Calculator By Rohan
color 1f
:top
echo --------------------------------------------------------------
echo Welcome to Calculator By Rohan
echo --------------------------------------------------------------
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo --------------------------------------------------------------
pause
cls
echo Previous Answer: %ans%
goto top
pause
exit
---------------------------------------------------------------------