Custom batch file example

A batch file is a script file in DOSOS/2 and Microsoft Windows. It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file.

Batch scripts are used to automate redundant tasks such as creating 100 folders or updating 50 servers. Yes you could do this 1 at a time manually but this is inefficient and a waste of time and money + resources.

Example Batch script

A good well written batch file can get a lot done and makes our lives a hell of a lot easier. The Linux equivalent is called a shell script.

Typically batch scripts end with .bat and some with .cmd. Batch scripts are executed.

Leave a Reply

Your email address will not be published. Required fields are marked *