What is Batch Script?

Asked

Viewed 1,094 times

-2

I started studying about Batch and a question arose in my head about whether or not he was one programming language.

I did a search on the internet on this subject and some people say no, others say yes and others say it is a "kind" of language.

What I want to know is: exactly is Batch Script and what would be the difference between it and CMD ?

  • 3

    Already had a read on the tags?

  • Yes I read and it’s the same thing I found on the internet: ""Batch", also called as "batch processing", refers to(s) execution(s) of one or more commands, which can be internal, and/or external. As well, it can(m) contain (in) program(s) call(s), on a computer, for various executions, with or without user interaction, to meet the desired processing". I don’t know if I’m the one who doesn’t understand, but I’m still wondering if it’s a language or just a tool to automate simple tasks. I would be happy if you spoke only whether or not it is a language.

1 answer

2


A batch file is a term for a "batch" file, meaning that it contains a lot of information to be processed. It’s an old term, it’s not necessarily associated with a program or script, it can be a lot of information, like data to be included/changed in a database or processed in some way, that’s the idea.

A batch file. BAT is a batch file of DOS prompt commands, such as copy and ren.

It is called a batch file because the DOS commands are not recognized as a programming language (such as C++ for example), nor a scripting language (such as Javascript for example). I’ve read in some places be called crippled language, which literally means a crippled language, that is, a language that "lacks things" to be a language.

Therefore, CMD has several commands, which are not necessarily a language, and a BATCH is a batch, a sequence of these commands (for example create a directory and copy files there) saved in a file .BAT that can be executed by the operating system.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.