What Are Batch Files?
Batch files are being used ever since command line interface came into existence. With the help of batch files users can automate several command-based tasks in order to save their time by typing the commands in a file and running the batch file to execute all the commands in a single go.
Moreover when batch files are created they can also be scheduled with the help of built-in scheduler program in order to execute the commands written in them at a predefined time.
Batch files can also be created and executed in Microsoft Windows 8 operating system and if as a Windows 8 user you want to create and execute the batch file you are required to follow the steps below:
1 Logon to Windows 8 computer on which you want to create and execute the batch file.
2 From the options available on the screen click on Desktop.
3 On the desktop screen press Windows + R keys simultaneously to initiate
4 On the opened Untitled – Notepad document type in all the commands that you want to execute. (In this example MD command is used to create two folders named AB and CD: MD C:\AB and MD C:\CD).
6 In order to execute the batch file you can double-click on it. Alternatively you can also right click on the batch file and from the context menu you can click on Run as administrator option if you have written the commands that need elevated privileges.