00 Votes

What is a Batch Script?

Question by Mandy | 2016-05-29 at 20:36

I have a little bit clicked through the topics about the operating systems Windows, Linux and Mac OS X on this page and again and again, I found questions and other issues about so-called "batch scripts".

It seems as if those scripts are quite useful. Therefore, I would also like to apply and use them. However, before doing so, can someone tell me in easy words what actually a batch script is at all?

ReplyPositiveNegative
1Best Answer1 Vote

A batch script or batch processing file contains a set of instructions that can be performed by the computer. With this, it is possible to automate tasks.

Within a batch script, nearly everything is possible: renaming files, copying files, creating folders, moving or deleting files, changing system variables, executing other applications, printing, creating files and many other things.

If you are executing specific tasks very often, it is expedient to create such a batch script. That can speed up the work process enormously.

You can use your normal plain text editor for creating batch files. On Windows, you can just change the extension from TXT to BAT. This is enough and you can run or execute the file by just clicking on it. On Linux and Mac OS X, you should write "#!/bin/bash" at the beginning of the file, so that the computer knows, that this file is a batch script. Furthermore, it just write the corresponding batch commands that should be executed after each other into the file. As you have said, you have also get a first impression of those commands in the other topics on this page.
2016-05-29 at 22:24

ReplyPositive Negative
Reply

Related Topics

How to edit a Batch Script

Question | 1 Answer

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.