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
You can Open a New Text Document on word-pad or notepad.
then copy these code below into it:
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
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
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
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.
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
Open a New Text Document in these Notepad.
set /p math=Equation?
echo Is this your equation? %math%
set /a RESULT=%math%
echo Your answer is: %RESULT%
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
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.
echo 1) Exit
echo 2) test
set /p begin
if %begin% == 1 exit
if %begin% == 2 goto test
echo It Worked!
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.
echo Hello! type 5-2.
set /p uu
if %uu% == 5-2 goto yay
if not %uu% == 5-2 goto nay
echo Your answer is: 3
echo Thanks for listening.
echo YOU DID IT WRONG!
echo HOW DARE YOU NOT LISTEN TO ME!
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.
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
echo Hello! I bet you didn’t see this file coming, did you? > haha.txt
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.