Save
PT
Save
Share
Learn
Content
Leaderboard
Learn
Created by
Eon
Visit profile
Cards (12)
batch
file
Windows. It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file
batch file
automates command sequences which are
repetitive
in nature.’
rem
For comments and documentation
rem
The computer ignores anything that follows this command
echo
off
command to ensure that the commands are
not
shown when the code is executed
The
Rem
command is used to add a comment to say what exactly this batch file does.
The
dir
command is used to take the contents of the location C:\Program Files.
The
dir
command is used to take the contents of the location C:\Program
the
echo
command is used to tell the user that the operation is completed.
variable-name
order to use variables in batch scripts, we use the “set”
value
is the value which needs to be set against the variable
/A
This switch is used if the value needs to be numeric in nature