Batch Script

Definition & Meaning

Last updated 23 month ago

What is a Batch Script?

A batch script is a textual content report that consists of positive Commands which are completed in series. It is used to simplify positive repetitive duties or workouts inside the Windows, DOS and OS/2 running sySTEMs, and is also used in complicated Network and system management.

A batch script has a Record Extension of .Bat, .Cmd or .Btm.

What Does Batch Script Mean?

The commands in a Batch File are perFormed through a unique Interface or Shell. These commands may additionally include “goto,” “for,” “name,” “echo,” “setlocal,” etc., and can employ choice and Loop Constructs. A batch script may be created using any textual content editor such as Notepad or WordPad, and have to be saved simplest in undeniable text format.

A batch record can be run easily through clicking on it or by way of tyPing its name in a Command Line Interpreter. A batch script also can be run with arguments. The following are a number of the usually used instructions in a batch script:

  • Echo — To show a few textual content at the display
  • Call — To run a batch script from within another script
  • Goto — To transfer control or execution Collection to a label or subroutine
  • If — To check a situation
  • Pause — To wait until a secret is pressed
  • Rem — To consist of a remark line within the script
  • Setlocal — To begin a neighborhood environment
  • Endlocal — To terminate a local environment
  • Shift — To Parse the command line arguments inside the script
  • Start — To run a script with a default utility
  • Xcopy — To copy documents and Folders

Share Batch Script article on social networks

Your Score to Batch Script article

Score: 5 out of 5 (1 voters)

Be the first to comment on the Batch Script

1167- V5

tech-term.com© 2023 All rights reserved