The 3 Core Elements of Batch Files

by thomasgamer4000 in Circuits > Computers

212 Views, 1 Favorites, 0 Comments

The 3 Core Elements of Batch Files

Brownie_Cube.png

the name speaks for itself

Commands

commandspic.png

here's some of the commands you should remember:

telnet [link] [port(if not given, its 23)]

echo [text]

pause (pause>nul does the same thing without text saying "press any key to continue...")

set /p [variable]=[prompt]

Variables

variablespic.png

to set what a variable, type this:

set /a [variable's name]=[new value]

to prompt the user to type what a variable should be set to, type this:

set /p [variable's name]=[prompt]

Checkpoints

checkspic.png

to make a checkpoint, type this:

:[checkpoint name]

to go to a chackpoint, type this:

goto [checkpoint name, no ":"]