Latest Tutorials

A free Download World for games,softwares,seo tools, website theme and plugins

Cool Batch Files to make

cool batch files

Here today i will Share really cool batch files,I am new to Instruct able. This is my first Instruct able. It is about batch coding. I hope you can like this way,this is best and unique you can really impressed this method thank for visit here and must be read you can easily learn this method

Also Read Free Vpn for Pc

cool batch files to make

Step 1: Matrix

1:

You can Open a New Text Document on word-pad or notepad.

2:

then copy these code below into it:

@echo off
color 0A
title Matrix
:loop
echo 11000011010010100100110101001010100101010101
echo 00111100101101011011001010110101011010101010
goto loop

3:

Then go to “File” and click “Save As…”

When these box pops up, type in Matrix.bat (the .bat part is very important)

Save it anywhere in your PC or computer ,then you can cool batch files to make

Explanation:

echo off: if you a typed “echo hi” these user would only see “hi” not “Echo hi” and on these next line “hi” in cool .bat files

color: changes these color

title: changes these title

:loop is a line of a code that you can skip too.

echo ____: anything typed after “echo” will be shown in these console window.

goto ___ : goes to these line of code specified

Also Read Apps like vshare

Step 2: Shutdown and Calculator

Shutdown:
1:

Open these New Text File in a Notepad

(There are very many best Variations of this code, but this is my favorite and most trollish is

shutdown /f /p

)

2:

Type in

shutdown

3:

You can get a screen with lots of stuff on it. scroll up.

Type in any combination of /_’s or -_’s that you are able to do.

4:

then go to “File” and click “Save As…”
When these box pops up, type in Shutdown.bat (the .bat part is very important)

Save it anywhere in your PC

Calculator:
1:

Open a New Text Document in these Notepad.

2:

Type in:

echo off
:start
cls
set /p math=Equation?
echo Is this your equation? %math%
pause
cls
set /a RESULT=%math%
echo Your answer is: %RESULT%
pause
goto start

this is really cool batch files tricks then

go to “File” and then click to “Save As…”
When these box pops up, type in these  Calcuator.bat (the .bat part is important)

Save it anywhere in your pc

Explanation:

cls: clears these screen.

set /p ___= : sets player input. Anything after these equals sign (=) is showed in these console window.

set /a ____=__ : Used to set an arithmetic value. set /a result=%math% would mean these result is saved as variable %result% and these variable %math% (which the user set) is these math that the computer does.

pause: Halts all code running until these user presses a button. Displays message “then you can Press any button to continue…”

Also Read iPhone Text Generator

Step 3: If/If Not statements cool batch files

These are kind of a complicated.

Example:

echo off
echo 1) Exit
echo 2) test
set /p begin
if %begin% == 1 exit
if %begin% == 2 goto test

:test
echo It Worked!
pause
exit

Here, if these user set input equals 1, exit.

if these user set input equals 2, it goes to these line “:test”.

This can open up to best new things, like quiz games and guessing games related to cool batch files games

In that example, these user would set these variable %begin% to either 1 or 2.

As for if not, it can open up to guessing games and a password programs.

Example:

echo off
echo Hello! type 5-2.
set /p uu
if %uu% == 5-2 goto yay
if not %uu% == 5-2 goto nay

:yay
echo Your answer is: 3
echo Thanks for listening.
pause
exit

:nay
echo YOU DID IT WRONG!
echo HOW DARE YOU NOT LISTEN TO ME!
pause
exit

Here, if you can type 5-2, then you can go to line :yay.

if you type anything else, (if not) you go to line :nay.

Explanation:

If not: If anything else is entered as variable %__%, do these following

if: if _ is entered as variable %__%, do these following

Step 4: Creating (and adding to) files in cool batch files tricks

This is one best tip you can’t Forget

Example:

echo off
cls
echo Hello!
echo Hello! I bet you didn’t see this file coming, did you? > haha.txt
pause
exit

This can open up to cool things like that organizing assignments, to-do lists, and a whole lot more.

One cool thing I came up with will come up within these download with everything else at these end.

the way this works, is, in these example, the text “Hello! I bet you didn’t see this file coming, did you?” will be copied into file haha.txt in these same folder as this .bat file.

The one > means, if i opened this, and it saved these file, and i changed what it puts into these file saved it this file again, it would ONLY say these new words. If you put >> it does not overwrite like that.

Related Post

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 18 other subscribers

Leave a Reply

Your email address will not be published. Required fields are marked *

adilikram.comCopyright Latest Tutorials - 2015 - . All rights reserved. Dil Bole Oberoi